mirror of
https://github.com/stargieg/bacnet-stack
synced 2025-10-26 23:35:52 +08:00
reduce MAX_NOTIFICATION_CLASSES and MAX_TREND_LOGS
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
/* number of demo objects */
|
/* number of demo objects */
|
||||||
#ifndef MAX_NOTIFICATION_CLASSES
|
#ifndef MAX_NOTIFICATION_CLASSES
|
||||||
#define MAX_NOTIFICATION_CLASSES 65535
|
#define MAX_NOTIFICATION_CLASSES 1024
|
||||||
#endif
|
#endif
|
||||||
unsigned max_notificaton_classes_int = 0;
|
unsigned max_notificaton_classes_int = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
/* number of demo objects */
|
/* number of demo objects */
|
||||||
#ifndef MAX_TREND_LOGS
|
#ifndef MAX_TREND_LOGS
|
||||||
#define MAX_TREND_LOGS 65535
|
#define MAX_TREND_LOGS 1024
|
||||||
#endif
|
#endif
|
||||||
unsigned max_trend_logs_int = 0;
|
unsigned max_trend_logs_int = 0;
|
||||||
|
|
||||||
@@ -2181,7 +2181,7 @@ void trend_log_timer(
|
|||||||
time_t tNow = 0;
|
time_t tNow = 0;
|
||||||
|
|
||||||
/* unused parameter */
|
/* unused parameter */
|
||||||
uSeconds = uSeconds;
|
//uSeconds = uSeconds;
|
||||||
/* use OS to get the current time */
|
/* use OS to get the current time */
|
||||||
tNow = time(NULL);
|
tNow = time(NULL);
|
||||||
for (iCount = 0; iCount < max_trend_logs_int; iCount++) {
|
for (iCount = 0; iCount < max_trend_logs_int; iCount++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user