Fix BACnet/IP builds for BBMD clients without BBMD tables. (#523)

* Fix BACnet/IP builds for BBMD clients without BBMD tables.

* added BBMD=client to pipeline build

---------

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2023-10-31 10:57:44 -05:00
committed by GitHub
parent c1464a1660
commit 2536d5a350
7 changed files with 39 additions and 2 deletions
+5 -2
View File
@@ -77,11 +77,12 @@ static bool BVLC_NAT_Handling = false;
static BACNET_IP_ADDRESS Remote_BBMD;
/** if we are a foreign device, store the Time-To-Live Seconds here */
static uint16_t Remote_BBMD_TTL_Seconds;
#if BBMD_ENABLED
#if BBMD_ENABLED || BBMD_CLIENT_ENABLED
/* local buffer & length for sending */
static uint8_t BVLC_Buffer[BIP_MPDU_MAX];
static uint16_t BVLC_Buffer_Len;
/* Broadcast Distribution Table */
#endif
#if BBMD_ENABLED/* Broadcast Distribution Table */
#ifndef MAX_BBMD_ENTRIES
#define MAX_BBMD_ENTRIES 128
#endif
@@ -255,6 +256,8 @@ void bvlc_maintenance_timer(uint16_t seconds)
{
#if BBMD_ENABLED
bvlc_foreign_device_table_maintenance_timer(&FD_Table[0], seconds);
#else
(void)seconds;
#endif
}