![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
Diff: PsiSwarm/serial.cpp
- Revision:
- 18:3fa5cd53ed45
- Parent:
- 6:ff3c66f7372b
--- a/PsiSwarm/serial.cpp Fri Jan 15 18:27:53 2016 +0000 +++ b/PsiSwarm/serial.cpp Thu Feb 23 09:51:40 2017 +0000 @@ -36,15 +36,15 @@ // Byte 0 and Byte 4 must be equal to COMMAND_MESSAGE_BYTE [in psiswarm.h] or message is treated as a user message -void handle_user_serial_message(char * message, char length, char interface) -{ +//void handle_user_serial_message(char * message, char length, char interface) +//{ //This is where user code for handling a (non-system) serial message should go //By default, nothing is done // //message = pointer to message char array //length = length of message //interface = 0 for PC serial connection, 1 for Bluetooth -} +//} void IF_handle_user_serial_message(char * message, char length, char interface) { @@ -54,8 +54,8 @@ buffer[i]=message[i]; } buffer[length]=0; - if(interface) debug("Received BT message:%s [%d chars]\n",buffer,length); - else debug("Received USB message:%s [%d chars]\n",buffer,length); + //if(interface) debug("Received BT message:%s [%d chars]\n",buffer,length); + //else debug("Received USB message:%s [%d chars]\n",buffer,length); handle_user_serial_message(message,length,interface); }