Now checking standard error define from who-is decoding.

This commit is contained in:
skarg
2013-10-31 20:14:37 +00:00
parent b3b3b8eca6
commit 5f3ec51291
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ void handler_who_is_unicast(
/* If no limits, then always respond */
if (len == 0)
Send_I_Am_Unicast(&Handler_Transmit_Buffer[0], src);
else if (len != -1) {
else if (len != BACNET_STATUS_ERROR) {
/* is my device id within the limits? */
if (((Device_Object_Instance_Number() >= (uint32_t) low_limit) &&
(Device_Object_Instance_Number() <= (uint32_t) high_limit))
@@ -147,7 +147,7 @@ static void check_who_is_for_routing(
len =
whois_decode_service_request(service_request, service_len, &low_limit,
&high_limit);
if (len == -1) {
if (len == BACNET_STATUS_ERROR) {
/* Invalid; just leave */
return;
}
+1 -1
View File
@@ -55,7 +55,7 @@ void handler_who_is(
&high_limit);
if (len == 0) {
Send_I_Am_Flag = true;
} else if (len != -1) {
} else if (len != BACNET_STATUS_ERROR) {
/* is my device id within the limits? */
target_device = Device_Object_Instance_Number();
if (((target_device >= low_limit) && (target_device <= high_limit))