Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak9752ctrl.cpp
- Revision:
- 47:221ec4b404ec
- Parent:
- 46:5938ad2039b0
--- a/ak9752ctrl.cpp Wed Dec 13 23:35:23 2017 +0000 +++ b/ak9752ctrl.cpp Thu Dec 14 00:21:43 2017 +0000 @@ -38,7 +38,7 @@ AK9752::SlaveAddress slaveAddr[] = { AK9752::SLAVE_ADDR_1 }; - for(int i=0; i<sizeof(slaveAddr); i++) + for(unsigned int i=0; i<sizeof(slaveAddr); i++) { ak9752->init(i2c, slaveAddr[i]); // Checks connectivity