adjusted the modbus return value comparison