Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmsensormanager.cpp
- Revision:
- 12:c06cd8b76358
- Parent:
- 11:cef8dc1cf010
- Child:
- 13:d008249f0359
--- a/akmsensormanager.cpp Fri Jul 22 22:54:11 2016 +0000 +++ b/akmsensormanager.cpp Wed Aug 10 23:50:53 2016 +0000 @@ -383,11 +383,13 @@ if(eventConnected) // BLE connected. Start sensor. { eventConnected = false; + MSG("#BLE connected.\r\n"); } if(eventDisconnected) // BLE dis-connected. Stop sensor. { + MSG("#BLE dis-connected.\r\n"); if( sensor->stopSensor() != AkmSensor::SUCCESS) status = AkmSensorManager::ERROR; - eventDisconnected = false; + eventDisconnected = false; } return status; } @@ -422,4 +424,4 @@ if(isEnabledUsb) serial->printf(buf); return SUCCESS; -} \ No newline at end of file +}