Modified for compatibility with Rev.E. hardware

Fork of AkmSensor by AKM Development Platform

Revision:
47:221ec4b404ec
Parent:
46:5938ad2039b0
Child:
48:427bdb7bf31b
diff -r 5938ad2039b0 -r 221ec4b404ec akmakd.cpp
--- a/akmakd.cpp	Wed Dec 13 23:35:23 2017 +0000
+++ b/akmakd.cpp	Thu Dec 14 00:21:43 2017 +0000
@@ -135,7 +135,7 @@
                 AkmECompass::SLAVE_ADDR_3,
                 AkmECompass::SLAVE_ADDR_4};
 
-        for(int i=0; i<sizeof(slaveAddr); i++)
+        for(unsigned int i=0; i<sizeof(slaveAddr); i++)
         {
             MSG("#look for e-compass.\r\n");
             compass->init(i2c, slaveAddr[i], devid);