Fork

Dependents:   BG96_K6xF_pelion-example-frdm BG96_K6xF_pelion-example-frdm_Temp

Files at this revision

API Documentation at this revision

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
--- 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);
 }