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.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: io/MTSSerialFlowControl.cpp
- Revision:
- 142:3b40320f3f73
- Parent:
- 141:571e0ef6c8dc
- Child:
- 144:52cb5b6667cc
--- a/io/MTSSerialFlowControl.cpp Sat Jan 04 05:28:45 2014 +0000
+++ b/io/MTSSerialFlowControl.cpp Sat Jan 04 21:09:13 2014 +0000
@@ -70,9 +70,10 @@
rxReadyFlag = false;
printf("[ERROR] Serial Rx Byte Dropped [%c][0x%02X]\r\n", byte, byte);
if(byte == 0xFF) {
- serial.attach(NULL, Serial::RxIrq);
- serial.attach(this, &MTSSerialFlowControl::handleRead, Serial::RxIrq);
- printf("[INFO] Reset the RxIrq.\n\r");
+ // hack so we dont hang - fix later
+ puts("[ERR] Comm errors, must reboot");
+ fflush(stdout);
+ NVIC_SystemReset();
}
return;
}
uIP Socket Modem Shield (Outdated - see below)