Moved the DCC of the COV handler into the handler.
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
#include "reject.h"
|
#include "reject.h"
|
||||||
#include "cov.h"
|
#include "cov.h"
|
||||||
#include "tsm.h"
|
#include "tsm.h"
|
||||||
|
#include "dcc.h"
|
||||||
/* demo objects */
|
/* demo objects */
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
#include "handlers.h"
|
#include "handlers.h"
|
||||||
@@ -321,6 +322,9 @@ static bool cov_send_request(
|
|||||||
bool status = false; /* return value */
|
bool status = false; /* return value */
|
||||||
BACNET_COV_DATA cov_data;
|
BACNET_COV_DATA cov_data;
|
||||||
|
|
||||||
|
if (!dcc_communication_enabled()) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
#if PRINT_ENABLED
|
#if PRINT_ENABLED
|
||||||
fprintf(stderr, "COVnotification: requested\n");
|
fprintf(stderr, "COVnotification: requested\n");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -212,9 +212,7 @@ int main(
|
|||||||
Device_local_reporting();
|
Device_local_reporting();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (dcc_communication_enabled()) {
|
handler_cov_task();
|
||||||
handler_cov_task();
|
|
||||||
}
|
|
||||||
/* scan cache address */
|
/* scan cache address */
|
||||||
address_binding_tmr += elapsed_seconds;
|
address_binding_tmr += elapsed_seconds;
|
||||||
if (address_binding_tmr >= 60) {
|
if (address_binding_tmr >= 60) {
|
||||||
|
|||||||
Reference in New Issue
Block a user