Updated handler_i_am_add to also display the responder's MAC

(IP) address when PRINT_ENABLED is defined. This will help 
when debugging duplicate BACNET IDs in a multi-device 
configuration.
This commit is contained in:
kingdl802
2009-04-07 18:58:00 +00:00
parent 32f08d9386
commit c6085fe776
+3 -1
View File
@@ -52,7 +52,9 @@ void handler_i_am_add(
#endif
if (len != -1) {
#if PRINT_ENABLED
fprintf(stderr, " from %u!\n", device_id);
fprintf(stderr, " from %u, MAC = %d.%d.%d.%d.%d.%d\n",device_id,
src->mac[0],src->mac[1],src->mac[2],
src->mac[3],src->mac[4],src->mac[5]);
#endif
address_add(device_id, max_apdu, src);
} else {