Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: ErrorHandler.cpp
- Revision:
- 16:fda7dbb8b47a
- Parent:
- 15:386dccd0000a
- Child:
- 18:bc165829bb88
diff -r 386dccd0000a -r fda7dbb8b47a ErrorHandler.cpp --- a/ErrorHandler.cpp Tue Feb 25 20:04:59 2014 +0000 +++ b/ErrorHandler.cpp Tue Feb 25 22:11:01 2014 +0000 @@ -70,8 +70,12 @@ this->m_lcd->cls(); this->m_lcd->locate(0,0); this->m_lcd->printf(this->m_message); - this->log("Press any key to continue..."); - this->m_pc->getc(); + this->log("Press any key to continue...ctrl-c to stop"); + char c = this->m_pc->getc(); + if (c == 0x03) { // CTRL-C ASCII + this->m_pc->printf("ctrl-c: closing down...\r\n"); + closedown(); + } } // check for exit