Moved the DCC of the COV handler into the handler.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user