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.cpp
- Revision:
- 109:bb4ef6a4bd0a
- Parent:
- 95:42f92b03f1b8
- Child:
- 111:d31b3a347e6a
--- a/src/OutputTask/OutputTask.cpp Thu Sep 22 12:15:24 2016 +0000 +++ b/src/OutputTask/OutputTask.cpp Thu Sep 22 14:47:35 2016 +0000 @@ -80,7 +80,7 @@ logInfo("%s is requesting ON control of %s", msg->id, msg->output); rc = enableOutputReq(msg->id, msg->priority, msg->output); if ( rc != 0 ) { - logError("%s: failed to enabled output for %s", + logError("%s: failed to enable output for %s", __func__, msg->id); } break; @@ -88,7 +88,7 @@ logInfo("%s is requesting OFF control of %s", msg->id, msg->output); rc = disableOutputReq(msg->id, msg->priority, msg->output); if ( rc != 0 ) { - printf("%s: failed to disabled output for %s", + printf("%s: failed to disable output for %s", __func__, msg->id); } break; @@ -134,6 +134,10 @@ } else { // a control is tied to this output ModbusMasterWriteRegister(pos->first, pos->second.begin()->getState()); + + // record actuation event + printf("DEBUG-> recording actuation event for %s -> %d\n", + pos->first, pos->second.begin()->getState()); } } }