From 958922a304cde94228379084bda55024b85a0922 Mon Sep 17 00:00:00 2001 From: skarg Date: Fri, 10 Jul 2009 22:00:40 +0000 Subject: [PATCH] Corrected baud rate write. --- bacnet-stack/ports/bdk-atxx4-mstp/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/ports/bdk-atxx4-mstp/device.c b/bacnet-stack/ports/bdk-atxx4-mstp/device.c index 73b2b653..93ab3385 100644 --- a/bacnet-stack/ports/bdk-atxx4-mstp/device.c +++ b/bacnet-stack/ports/bdk-atxx4-mstp/device.c @@ -615,7 +615,7 @@ bool Device_Write_Property( break; case 9600: 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))) { status = true; } else {