Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MMA8451Q.cpp
- Revision:
- 5:768a6d2a76ef
- Parent:
- 3:db7126dbd63f
diff -r c4d879a39775 -r 768a6d2a76ef MMA8451Q.cpp
--- a/MMA8451Q.cpp Fri Oct 12 11:35:07 2012 +0000
+++ b/MMA8451Q.cpp Thu Mar 05 11:03:43 2020 +0000
@@ -71,7 +71,7 @@
}
void MMA8451Q::readRegs(int addr, uint8_t * data, int len) {
- char t[1] = {addr};
+ char t[1] = {(char) addr};
m_i2c.write(m_addr, t, 1, true);
m_i2c.read(m_addr, (char *)data, len);
}