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/ModbusMaster/ModbusMaster.cpp
- Revision:
- 87:c466bde76fa0
- Parent:
- 82:f3e495a98877
- Parent:
- 86:189c125d8878
- Child:
- 88:8a1a2bba8850
--- a/src/ModbusMaster/ModbusMaster.cpp Tue Sep 20 15:35:13 2016 +0000
+++ b/src/ModbusMaster/ModbusMaster.cpp Tue Sep 20 16:02:58 2016 +0000
@@ -132,10 +132,12 @@
default:
break;
}
-
- if( iter->second.input == false ) {
- logInfo("processing output=%s, reg=%d, value=%d",iter->first.c_str(), ModbusRegisterMap[iter->first].reg, (bool)ModbusRegisterMap[iter->first].float_value);
- if( ModbusRegisterMap[iter->first].reg == 1 ) {
+
+ if( iter->second.input == false )
+ {
+ logInfo("processing output=%s, reg=%d, value=%d\r\n",iter->first.c_str(), ModbusRegisterMap[iter->first].reg, (bool)ModbusRegisterMap[iter->first].float_value);
+ if( ModbusRegisterMap[iter->first].reg == 1 )
+ {
dout1 = (bool)ModbusRegisterMap[iter->first].float_value;
} else {
dout2 = (bool)ModbusRegisterMap[iter->first].float_value;
