Moved the DCC of the COV handler into the handler.

This commit is contained in:
skarg
2011-10-03 21:49:10 +00:00
parent 2b0fac263c
commit 0d5c57b149
2 changed files with 5 additions and 3 deletions
+4
View File
@@ -39,6 +39,7 @@
#include "reject.h"
#include "cov.h"
#include "tsm.h"
#include "dcc.h"
/* demo objects */
#include "device.h"
#include "handlers.h"
@@ -321,6 +322,9 @@ static bool cov_send_request(
bool status = false; /* return value */
BACNET_COV_DATA cov_data;
if (!dcc_communication_enabled()) {
return status;
}
#if PRINT_ENABLED
fprintf(stderr, "COVnotification: requested\n");
#endif
+1 -3
View File
@@ -212,9 +212,7 @@ int main(
Device_local_reporting();
#endif
}
if (dcc_communication_enabled()) {
handler_cov_task();
}
handler_cov_task();
/* scan cache address */
address_binding_tmr += elapsed_seconds;
if (address_binding_tmr >= 60) {