Fix a bug in Modbus RS485 driver.