CAC_smartcushion / Mbed OS AdiSense1000_V21_Smartcushion

Fork of Sean_AdiSense1000_V21 by Rohan Gurav

Revision:
35:853be4d80ff3
Parent:
34:029fc3b83f78
Child:
36:4aded4b4f060
--- 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;