Add rts_1 config value as an alias for rts

This commit is contained in:
Victor Antonovich 2023-11-27 15:43:34 +03:00
parent 4ee7e8a834
commit 20c87df994
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ mode = 8n1
# Enable RS-485 support for given serial port device (Linux only)
# enable_rs485 = no
# RS-485 data direction control type (addc, rts, sysfs_0, sysfs_1)
# RS-485 data direction control type (addc, rts_0, rts/rts_1, sysfs_0, sysfs_1)
trx_control = addc
# Sysfs file to use to control data direction

View File

@ -200,7 +200,7 @@ cfg_handle_param(char *name, char *value)
{
cfg.trxcntl = TRX_ADDC;
}
else if (CFG_VALUE_MATCH("rts"))
else if (CFG_VALUE_MATCH("rts") || CFG_VALUE_MATCH("rts_1"))
{
cfg.trxcntl = TRX_RTS_1;
}