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/ConfigurationHandler/Controls/SetpointControl.cpp
- Revision:
- 72:3754b352f156
- Parent:
- 71:34856d21f2bf
- Child:
- 86:189c125d8878
diff -r 34856d21f2bf -r 3754b352f156 src/ConfigurationHandler/Controls/SetpointControl.cpp --- a/src/ConfigurationHandler/Controls/SetpointControl.cpp Fri Sep 16 20:54:07 2016 +0000 +++ b/src/ConfigurationHandler/Controls/SetpointControl.cpp Fri Sep 16 21:42:11 2016 +0000 @@ -188,4 +188,24 @@ strncpy(output_mail->output, this->output.c_str(), sizeof(output_mail->output)-1); strncpy(output_mail->id, this->id.c_str(), sizeof(output_mail->id)-1); OutputMasterMailBox.put(output_mail); +} + +// Method: unregisterControl +// Description: send OFF indication to Output Master for this control's +// relay +// +// @param none +// @return none +void SetpointControl::unregisterControl(void) +{ + logInfo("%s: %s attempting to stop feed on relay %s\n", + __func__, controlFile.c_str(), output.c_str()); + + OutputControlMsg_t *output_mail = OutputMasterMailBox.alloc(); + memset(output_mail, 0, sizeof(OutputControlMsg_t)); + output_mail->action = ACTION_CONTROL_UNREGISTER; + output_mail->priority = this->priority; + strncpy(output_mail->output, this->output.c_str(), sizeof(output_mail->output)-1); + strncpy(output_mail->id, this->id.c_str(), sizeof(output_mail->id)-1); + OutputMasterMailBox.put(output_mail); } \ No newline at end of file