Dependencies: nRF51822
Diff: Source/log.cpp
- Revision:
- 27:bb7247a1704e
- Parent:
- 24:761c30334cf4
- Child:
- 40:adabdb1c5abe
diff -r a577c4b69fe0 -r bb7247a1704e Source/log.cpp --- a/Source/log.cpp Mon Apr 15 18:46:57 2019 +0000 +++ b/Source/log.cpp Wed Apr 17 18:19:30 2019 +0000 @@ -26,7 +26,7 @@ cnt++; rec++; } - return 0; + return cnt; } // returns the number of records with code type @@ -41,7 +41,7 @@ if(rec->code == code) cnt++; rec++; } - return 0; + return cnt; } // returns address of 1st free record @@ -97,8 +97,10 @@ BLE_UART_xmit("\n"); rec++; - //ble.waitForEvent(); - delay_ms(100); + + BLE &ble = BLE::Instance(); + ble.waitForEvent(); + wait(0.100); } //BLE_UART_xmit("Done!\n");