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.
Dependencies: USBDevice max32630fthr
Revision 5:703f61be6ee2, committed 2017-07-01
- Comitter:
- koziniec
- Date:
- Sat Jul 01 01:35:47 2017 +0000
- Parent:
- 4:e996385ca6d9
- Child:
- 6:af25f19eb4e6
- Commit message:
- Every element breaking out nicely on screen.; Both lock and non-lock conditions handled.; :-)
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Jul 01 01:25:05 2017 +0000
+++ b/main.cpp Sat Jul 01 01:35:47 2017 +0000
@@ -39,7 +39,10 @@
if ((nmea_sentence[nmea_index-1] == ',')&&(nmea_char == ',')) {
nmea_sentence[nmea_index++] = ' '; //Pad consecutive comma with a space
}
- nmea_sentence[nmea_index] = nmea_char;
+ if (nmea_char == '*'){
+ nmea_sentence[nmea_index++] = ','; //inserting a comma before CS makes handling easier
+ }
+ nmea_sentence[nmea_index] = nmea_char; //build the sentence
if (nmea_index > 80) {
nmea_index=80; //Don't overflow buffer
}