mirror of
https://github.com/stargieg/bacnet-stack
synced 2025-10-19 23:25:23 +08:00
[r3150] address_cache file was inadvertently disabled for command line demo tools. Fixed. Thank you, Martin Tremblay! Syncing with 0.8.x branch.
This commit is contained in:
parent
de1c4b5baa
commit
e99cf2d714
|
|
@ -43,6 +43,13 @@
|
|||
#include "bacdcode.h"
|
||||
#include "readrange.h"
|
||||
|
||||
/* we are likely compiling the demo command line tools if print enabled */
|
||||
#if !defined(BACNET_ADDRESS_CACHE_FILE)
|
||||
#if PRINT_ENABLED
|
||||
#define BACNET_ADDRESS_CACHE_FILE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** @file address.c Handle address binding */
|
||||
|
||||
/* This module is used to handle the address binding that */
|
||||
|
|
@ -291,6 +298,7 @@ bool address_mac_from_ascii(
|
|||
return status;
|
||||
}
|
||||
|
||||
#ifdef BACNET_ADDRESS_CACHE_FILE
|
||||
/* File format:
|
||||
DeviceID MAC SNET SADR MAX-APDU
|
||||
4194303 05 0 0 50
|
||||
|
|
@ -351,7 +359,7 @@ static void address_file_init(
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Clear down the cache and make sure the full complement of entries are *
|
||||
|
|
@ -370,8 +378,9 @@ void address_init(
|
|||
pMatch->Flags = 0;
|
||||
pMatch++;
|
||||
}
|
||||
#ifdef BACNET_ADDRESS_CACHE_FILE
|
||||
address_file_init(Address_Cache_Filename);
|
||||
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -402,7 +411,9 @@ void address_init_partial(
|
|||
|
||||
pMatch++;
|
||||
}
|
||||
#ifdef BACNET_ADDRESS_CACHE_FILE
|
||||
address_file_init(Address_Cache_Filename);
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user