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:
- 94:18ae2fd82638
- Parent:
- 86:189c125d8878
- Child:
- 95:42f92b03f1b8
--- a/src/OutputTask/OutputTask.cpp Tue Sep 20 19:31:38 2016 +0000 +++ b/src/OutputTask/OutputTask.cpp Tue Sep 20 19:47:04 2016 +0000 @@ -7,6 +7,7 @@ #include "OutputTask.h" #include "global.h" #include "MbedJSONValue.h" +#include "ModbusMasterApi.h" #include <vector> #include <string> #include <algorithm> @@ -133,8 +134,7 @@ // a control is tied to this output printf("\r%s: %s is controlling %s\n", __func__, pos->second.begin()->getId().c_str(), pos->first.c_str()); - // TODO: send a message to the modbus master of who's in control - // foo(pos->second->getId().c_str(); + ModbusMasterWriteRegister(pos->first, pos->second.begin()->getState()); } } }