Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
199:d65ed41d4dd4
Parent:
197:594afd088f32
Child:
203:9d735375f218
--- a/src/ModbusMaster/ModbusMaster.cpp	Thu Oct 06 21:02:11 2016 +0000
+++ b/src/ModbusMaster/ModbusMaster.cpp	Fri Oct 07 11:40:51 2016 +0000
@@ -117,6 +117,7 @@
             std::map<std::string, ModbusRegister>::iterator iter;
             for (iter = ModbusRegisterMap.begin(); iter != ModbusRegisterMap.end(); ++iter) {
                 if( iter->second.simulated == true ) {
+                    ModbusRegisterMap[iter->first].errflag = 0;
 //                  printf("\r\nsimulating input=%s, min=%2.2f, max=%2.2f, start_value=%2.2f, up_step=%2.2f, down_step=%2.2f moving_up=%d\r\n",iter->first.c_str(), SimulateInputMap[iter->first].min, SimulateInputMap[iter->first].max, SimulateInputMap[iter->first].start_value, SimulateInputMap[iter->first].up_step, SimulateInputMap[iter->first].down_step, SimulateInputMap[iter->first].moving_up);
                     if( (SimulateInputMap[iter->first].min == 0) && (SimulateInputMap[iter->first].max == 0) ) {
                         ModbusRegisterMap[iter->first].float_value = SimulateInputMap[iter->first].start_value;