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.
Dependents: BG96_K6xF_pelion-example-frdm BG96_K6xF_pelion-example-frdm_Temp
Revision 2:ee0bdc90f4fb, committed 2019-07-24
- Comitter:
- Daniel_Lee
- Date:
- Wed Jul 24 16:03:14 2019 +0000
- Parent:
- 1:8461f7fe0a7f
- Commit message:
- fixed compile error
Changed in this revision
| FXAS21002.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8461f7fe0a7f -r ee0bdc90f4fb FXAS21002.cpp
--- a/FXAS21002.cpp Fri Jul 29 08:22:44 2016 +0000
+++ b/FXAS21002.cpp Wed Jul 24 16:03:14 2019 +0000
@@ -152,7 +152,7 @@
void FXAS21002::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);
}