Fixed network priority reponses for test 10.1.2 (#687)

This commit is contained in:
GauiStori
2024-07-11 17:26:22 +02:00
committed by GitHub
parent 8bb93d3286
commit 2c819274af
5 changed files with 51 additions and 1 deletions
+5
View File
@@ -252,6 +252,11 @@ void npdu_handler(BACNET_ADDRESS *src, uint8_t *pdu, uint16_t pdu_len)
/* ConfirmedBroadcastReceived */
/* then enter IDLE - ignore the PDU */
} else {
if (npdu_data.data_expecting_reply ) {
apdu_network_priority_set(npdu_data.priority);
} else {
apdu_network_priority_set(MESSAGE_PRIORITY_NORMAL);
}
apdu_handler(src, &pdu[apdu_offset],
(uint16_t)(pdu_len - apdu_offset));
}