Modified for compatibility with Rev.E. hardware

Fork of AkmSensor by AKM Development Platform

Revision:
47:221ec4b404ec
Parent:
46:5938ad2039b0
--- a/ak9750ctrl.cpp	Wed Dec 13 23:35:23 2017 +0000
+++ b/ak9750ctrl.cpp	Thu Dec 14 00:21:43 2017 +0000
@@ -44,11 +44,11 @@
         AK9750::SLAVE_ADDR_2,
         AK9750::SLAVE_ADDR_3};
 
-    for(int i=0; i<sizeof(slaveAddr); i++)
+    for(unsigned int i=0; i<sizeof(slaveAddr); i++)
     {
         ak9750->init(i2c, slaveAddr[i]);
         // Checks connectivity
-        if(ak9750->checkConnection() == Ak9750Ctrl::SUCCESS) {
+        if(ak9750->checkConnection() == AK9750::SUCCESS) {
             // found
             foundSensor = true;
             break;