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.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/OutputTask/OutputTask.h
- Revision:
- 182:6408a4ae99c3
- Parent:
- 115:1558e01d04c6
--- a/src/OutputTask/OutputTask.h Tue Oct 04 15:48:12 2016 +0000
+++ b/src/OutputTask/OutputTask.h Tue Oct 04 18:32:25 2016 +0000
@@ -35,11 +35,11 @@
Control(std::string id, Control_t controlType, std::string input, unsigned int priority, ControlState state) :
id(id), controlType(controlType), input(input), priority(priority), state(state) {}
// dtor
- ~Control() {}
+ ~Control() {}
// displays a control's pertinents
void display() {
- printf("[%s | %s | %u]",
+ printf(" [%-16s | %-3s | %u] ",
id.c_str(), (state == CONTROL_ON) ? "ON" : "OFF", priority);
}
