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/Control.cpp
- Revision:
- 192:052a419837fa
- Parent:
- 185:5ac6ab1ed875
- Child:
- 212:289f63158d2b
--- a/src/OutputTask/Control.cpp Thu Oct 06 12:25:44 2016 +0000
+++ b/src/OutputTask/Control.cpp Thu Oct 06 15:36:26 2016 +0000
@@ -1,6 +1,12 @@
+/******************************************************************************
+ *
+ * File: Control.cpp
+ * Desciption: ICE Control Class implementation for Output Thread
+ *
+ *****************************************************************************/
#include <Control.h>
-unsigned int Control::getMappedState(void) const
+int Control::getMappedState(void) const
{
switch (controlType) {
case CONTROL_TIMER:
@@ -9,7 +15,8 @@
case CONTROL_MANUAL:
return (state) ? RELAY_STATUS_MANUAL_ON : RELAY_STATUS_MANUAL_OFF;
case CONTROL_COMPOSITE:
+ case CONTROL_PID:
default:
- return 0;
+ return -1;
}
}
