Commit d7adc79d authored by Claes Sjofors's avatar Claes Sjofors

Modbus RTU higher baudrate added

parent 03a6683b
......@@ -162,6 +162,15 @@ static pwr_tStatus IoAgentInit (
case 19200:
tty_attributes.c_cflag |= B19200;
break;
case 38400:
tty_attributes.c_cflag |= B38400;
break;
case 57600:
tty_attributes.c_cflag |= B57600;
break;
case 115200:
tty_attributes.c_cflag |= B115200;
break;
default:
errh_Error( "Modbus RTU Master, unsupported speed, %s", ap->Name);
tty_attributes.c_cflag |= B9600;
......
......@@ -798,6 +798,15 @@ static pwr_tStatus IoRackInit (
case 19200:
tty_attributes.c_cflag |= B19200;
break;
case 38400:
tty_attributes.c_cflag |= B38400;
break;
case 57600:
tty_attributes.c_cflag |= B57600;
break;
case 115200:
tty_attributes.c_cflag |= B115200;
break;
default:
errh_Error( "Modbus RTU Master, unsupported speed, %s", ap->Name);
tty_attributes.c_cflag |= B9600;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment