Pacemaker code Implementation for SFWRENG 3K04
Dependencies: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
Diff: interface.cpp
- Revision:
- 13:bb80794b6727
- Parent:
- 10:0e0130742e87
- Child:
- 15:3b8acee3510d
diff -r 850facf8a8d4 -r bb80794b6727 interface.cpp --- a/interface.cpp Tue Nov 15 21:41:12 2016 +0000 +++ b/interface.cpp Tue Nov 15 22:17:03 2016 +0000 @@ -83,7 +83,7 @@ break; case '3': pc->printf("\nGeneral Data"); - pc->printf("\n1. Hysteresis: %p", generalData->getHyst()); + pc->printf("\n1. Hysteresis: %s", generalData->getHyst() ? "true" : "false"); pc->printf("\n2. Hysteresis Interval: %f", generalData->getHystInterval()); pc->printf("\n3. Lower Rate Limit: %f", generalData->getLRL()); pc->printf("\n4. Upper Rate Limit: %f", generalData->getURL()); @@ -141,6 +141,8 @@ } } + + char* interface::getInput(){ char buffer[5]; fgets (buffer,5,stdin);