Self test boot program for testing icarus sensors
Dependencies: BLE_API mbed nRF51822
Fork of BLE_UARTConsole by
Diff: main.cpp
- Revision:
- 9:ed3636e1873f
- Parent:
- 8:e9ae7a01d866
- Child:
- 11:70359785c2a7
--- a/main.cpp Tue Jan 27 09:29:17 2015 +0000 +++ b/main.cpp Tue Jan 27 12:30:51 2015 +0000 @@ -45,7 +45,7 @@ DigitalIn button(p16,PullDown); char debugBuffer[LOG_BUFFER]; -int sensorErrors[10]; +uint32_t sensorErrors[10]; void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason) @@ -58,7 +58,7 @@ int testSensors(void) { - int errorCount = sensor.verifyIntegrity(sensorErrors); + uint32_t errorCount = sensor.verifyIntegrity(sensorErrors); if (errorCount>0){ for (int i=0;i<errorCount;i++){ LOG("ERROR: Sensor %s failed with error code: %d",sensor.getSimpleName(),sensorErrors[i]);