Fork to see if I can get working

Dependencies:   BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated

Fork of xDotBridge_update_test20180823 by Matt Briggs

Files at this revision

API Documentation at this revision

Comitter:
mbriggs_vortex
Date:
Tue Nov 21 17:43:56 2017 -0700
Parent:
92:1f86edb14cbe
Child:
94:8028c07f71fa
Commit message:
Updates for both bootloader and key check.

Changed in this revision

bootloader/xDotBootloader.bin Show annotated file Show diff for this revision Revisions of this file
bootloader/xDotBootloader_v1_02_20171121.bin Show annotated file Show diff for this revision Revisions of this file
xDotBridge/src/SerialTermMgr.cpp Show annotated file Show diff for this revision Revisions of this file
Binary file bootloader/xDotBootloader.bin has changed
Binary file bootloader/xDotBootloader_v1_02_20171121.bin has changed
--- a/xDotBridge/src/SerialTermMgr.cpp	Tue Nov 21 16:07:54 2017 -0700
+++ b/xDotBridge/src/SerialTermMgr.cpp	Tue Nov 21 17:43:56 2017 -0700
@@ -268,9 +268,9 @@
 
 				// Check for update string in last packet
                 bool foundKey;
-                for (int packetIdx=3;packetIdx<sizeof(packetBuf)-sizeof(VORTEX_UPDATE_KEY);packetIdx++) {
+                for (int packetIdx=3;packetIdx<sizeof(packetBuf)-sizeof(VORTEX_UPDATE_KEY)-1;packetIdx++) {
                 	foundKey = true;
-					for (int i=0;i<sizeof(VORTEX_UPDATE_KEY);i++) {
+					for (int i=0;i<sizeof(VORTEX_UPDATE_KEY)-1;i++) {
 						if (packetBuf[packetIdx+i] != VORTEX_UPDATE_KEY[i]) {
 							foundKey = false;
 							break;