Corrected baud rate write.
This commit is contained in:
@@ -615,7 +615,7 @@ bool Device_Write_Property(
|
|||||||
break;
|
break;
|
||||||
case 9600:
|
case 9600:
|
||||||
if (value.tag == BACNET_APPLICATION_TAG_UNSIGNED_INT) {
|
if (value.tag == BACNET_APPLICATION_TAG_UNSIGNED_INT) {
|
||||||
if ((value.type.Unsigned_Int > 115200) &&
|
if ((value.type.Unsigned_Int <= 115200) &&
|
||||||
(rs485_baud_rate_set(value.type.Unsigned_Int))) {
|
(rs485_baud_rate_set(value.type.Unsigned_Int))) {
|
||||||
status = true;
|
status = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user