Modified version of the UKESF lab source which can be carried out with no knowledge of C

Fork of PsiSwarm-Headstart by UKESF Headstart Summer School

Files at this revision

API Documentation at this revision

Comitter:
YRL50
Date:
Fri Sep 14 16:00:48 2018 +0000
Parent:
4:dc77a25f29de
Commit message:
Fixing compile warnings

Changed in this revision

serial.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r dc77a25f29de -r f6be169e465b serial.cpp
--- a/serial.cpp	Mon Jun 20 13:35:06 2016 +0000
+++ b/serial.cpp	Fri Sep 14 16:00:48 2018 +0000
@@ -966,6 +966,7 @@
             send_message = 1;
             break;
         case 123:
+        {
             strcpy(command,"GET FIRMWARE H-DESC");
             char byte0 = 0;
             char byte1 = 1;
@@ -983,6 +984,7 @@
             sprintf(ret_message,"%c%c",byte0,byte1);
             send_message = 1;
             break;
+        }
         case 124:
             strcpy(command,"GET PCB VERSION");
             sprintf(ret_message,"%1.2f",pcb_version);
@@ -1168,7 +1170,7 @@
 }
 
 Timeout bt_message_timeout;
-static float bt_message_timeout_period = 0.001; // 1 millisecond
+//static float bt_message_timeout_period = 0.001; // 1 millisecond
 char bt_buffer[255];
 int bt_buffer_index = 0;