Fork
Dependents: BG96_K6xF_pelion-example-frdm BG96_K6xF_pelion-example-frdm_Temp
Revision 12:192bb7e45280, committed 2019-07-24
- Comitter:
- Daniel_Lee
- Date:
- Wed Jul 24 16:03:22 2019 +0000
- Parent:
- 10:834488c11340
- Commit message:
- fixed compile error
Changed in this revision
FXOS8700Q.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 834488c11340 -r 192bb7e45280 FXOS8700Q.cpp --- a/FXOS8700Q.cpp Thu Jun 18 22:53:07 2015 +0000 +++ b/FXOS8700Q.cpp Wed Jul 24 16:03:22 2019 +0000 @@ -55,7 +55,7 @@ void FXOS8700Q::readRegs(int addr, uint8_t *data, uint32_t len) const { - char t[1] = {addr}; + char t[1] = {(char)addr}; _i2c->write(_addr, t, sizeof(t), true); _i2c->read(_addr, (char *)data, len); }