Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Sean_AdiSense1000_V21 by
Diff: src/myproswift_eval.cpp
- Revision:
- 35:853be4d80ff3
- Parent:
- 34:029fc3b83f78
- Child:
- 36:4aded4b4f060
diff -r 029fc3b83f78 -r 853be4d80ff3 src/myproswift_eval.cpp --- a/src/myproswift_eval.cpp Mon Sep 24 11:39:35 2018 +0000 +++ b/src/myproswift_eval.cpp Thu Sep 27 12:14:22 2018 +0000 @@ -39,7 +39,7 @@ } //poll ble and pc flag - while( !bBleMessageReceived /*&& !bPcMessageFlag */ ) + while( !bBleMessageReceived && !bPcMessageFlag ) ;//add mbed abstracted sleep function //clear ble callbacks if needed @@ -59,9 +59,9 @@ //handle message based on which interface it was received from if( bBleMessageReceived ) { //parse and handle command - ADI_SENSE_LOG_INFO("Ble Message Received!"); + ADI_SENSE_LOG_INFO("BLE Message Received!"); ret = Ble_ParseCommand( bleBuffer ); - ADI_SENSE_LOG_INFO("Command Parsed!"); + ADI_SENSE_LOG_INFO("BLE Command Parsed!"); if(ret != 0) { //all ble side error handled within function as responses return ret; @@ -70,7 +70,9 @@ else if(bPcMessageFlag) { //parse and handle command + ADI_SENSE_LOG_INFO("PC Message Received!"); ret = Pc_ParseCommand( msgBuffer ); + ADI_SENSE_LOG_INFO("PC Command Parsed!"); if( ret != 0 ) { //all pc side error handled within function as responses return ret;