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:
- 269:97243a7f56ba
- Parent:
- 268:50bed2502270
- Child:
- 274:e2caebc7c65e
diff -r 50bed2502270 -r 97243a7f56ba src/OutputTask/OutputTask.cpp
--- a/src/OutputTask/OutputTask.cpp Tue Oct 25 13:56:14 2016 +0000
+++ b/src/OutputTask/OutputTask.cpp Wed Oct 26 18:30:08 2016 +0000
@@ -191,7 +191,18 @@
printf("\rev.outputValue = %.02f\n", ev.outputValue);
EventLoggerApi(ev);
break;
-
+
+ case CONTROL_FAILSAFE:
+ ev.eventReason = EVENT_REASON_FAILSAFE;
+ strncpy(ev.outputTag, output.c_str(), sizeof(ev.outputTag));
+ ModbusMasterReadRegister(output, &output_value);
+ ev.outputValue = output_value.value;
+ printf("\rEVENT RECORD\n");
+ printf("\rrev.eventReason = %d\n", ev.eventReason);
+ printf("\rev.outputTag = %s\n", ev.outputTag);
+ printf("\rev.outputValue = %.02f\n", ev.outputValue);
+ EventLoggerApi(ev);
+ break;
default:
break;
}
