modbus: client: change 'EXNO' to '-EIO'
Fix error in Modbus client write response validation. Signed-off-by: Ahmad Atoof <aat@trackunit.com>
This commit is contained in:
@@ -227,7 +227,7 @@ static int mbc_validate_wr_response(struct modbus_context *ctx,
|
||||
case MODBUS_FC15_COILS_WR:
|
||||
case MODBUS_FC16_HOLDING_REGS_WR:
|
||||
if (req_addr != resp_addr || req_value != resp_value) {
|
||||
err = ENXIO;
|
||||
err = -EIO;
|
||||
} else {
|
||||
err = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user