From a83f66fc1d818e41f0720878612963bf6a63231e Mon Sep 17 00:00:00 2001 From: skarg Date: Sun, 19 Feb 2006 02:01:48 +0000 Subject: [PATCH] Corrected code after failing unit test. --- bacnet-stack/whohas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/whohas.c b/bacnet-stack/whohas.c index 2dfcd82c..8fe24e6e 100644 --- a/bacnet-stack/whohas.c +++ b/bacnet-stack/whohas.c @@ -147,7 +147,7 @@ int whohas_decode_apdu(uint8_t * apdu, /* optional checking - most likely was already done prior to this call */ if (apdu[0] != PDU_TYPE_UNCONFIRMED_SERVICE_REQUEST) return -1; - if (apdu[1] != SERVICE_UNCONFIRMED_WHO_IS) + if (apdu[1] != SERVICE_UNCONFIRMED_WHO_HAS) return -1; /* optional limits - must be used as a pair */ if (apdu_len > 2) {