1 # modbus_disable_quirks
5 modbus_disable_quirks - disable a list of quirks according to a mask
10 int modbus_disable_quirks(modbus_t *ctx, unsigned int quirks_mask);
15 The function shall disable the quirks according to the provided mask. It's
16 useful to revert changes applied by a previous call to
17 [modbus_enable_quirks](modbus_enable_quirks.md)
19 To reset all quirks, you can use the specific value `MODBUS_QUIRK_ALL`.
22 modbus_enable_quirks(ctx, MODBUS_QUIRK_MAX_SLAVE | MODBUS_QUIRK_REPLY_TO_BROADCAST);
27 modbus_disable_quirks(ctx, MODBUS_QUIRK_ALL);
32 The function shall return 0 if successful. Otherwise it shall return -1 and set
37 - [modbus_enable_quirks](modbus_enable_quirks.md)