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 QW-Reactiontime by
Revision 3:1bc9575369bd, committed 2016-12-15
- Comitter:
- quicksand
- Date:
- Thu Dec 15 13:27:19 2016 +0000
- Parent:
- 2:73b5ca784164
- Commit message:
- changed program ID in Sigfox message
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 73b5ca784164 -r 1bc9575369bd main.cpp
--- a/main.cpp Thu Dec 15 09:57:11 2016 +0000
+++ b/main.cpp Thu Dec 15 13:27:19 2016 +0000
@@ -114,7 +114,7 @@
LED_3 = 1;
winner = 1;
char command[SER_BUFFER_SIZE];
- sprintf(command, "AT$SF=05%04x%04x,2,0\n", (int) winner, (int) reactionTime );
+ sprintf(command, "AT$SF=06%04x%04x,2,0\n", (int) winner, (int) reactionTime );
pc.printf("Sending winner = %i and reaction time = %i ms over Sigfox\n", winner, reactionTime);
pc.printf("using modem command: %s\n", command);
modem_command_check_ok(command);
@@ -135,7 +135,7 @@
LED_3 = 1;
winner = 2;
char command[SER_BUFFER_SIZE];
- sprintf(command, "AT$SF=05%04x%04x,2,0\n", (int) winner, (int) reactionTime );
+ sprintf(command, "AT$SF=06%04x%04x,2,0\n", (int) winner, (int) reactionTime );
pc.printf("Sending winner = %i and reaction time = %i ms over Sigfox\n", winner, reactionTime);
pc.printf("using modem command: %s\n", command);
modem_command_check_ok(command);
