![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
Diff: xDotBridge/src/SerialTermMgr.cpp
- Revision:
- 93:f3adc409c54e
- Parent:
- 92:1f86edb14cbe
- Child:
- 94:8028c07f71fa
--- 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;