Refactored the DCC code in APDU for clarity. Added DCC check in demo server to prevend COV when DCC is not enabled.

This commit is contained in:
skarg
2010-12-22 03:09:42 +00:00
parent 350736f6bb
commit 1c560c27b9
3 changed files with 70 additions and 21 deletions
+3 -2
View File
@@ -36,8 +36,9 @@
#include "bacapp.h"
#include "config.h" /* the custom stuff */
#include "apdu.h"
#include "wp.h" /* write property handling */
#include "rp.h" /* read property handling */
#include "wp.h" /* WriteProperty handling */
#include "rp.h" /* ReadProperty handling */
#include "dcc.h" /* DeviceCommunicationControl handling */
#include "version.h"
#include "device.h" /* me */
#include "handlers.h"
+3 -1
View File
@@ -213,7 +213,9 @@ int main(
dlenv_maintenance_timer(elapsed_seconds);
Load_Control_State_Machine_Handler();
elapsed_milliseconds = elapsed_seconds * 1000;
handler_cov_task(elapsed_seconds);
if (dcc_communication_enabled()) {
handler_cov_task(elapsed_seconds);
}
tsm_timer_milliseconds(elapsed_milliseconds);
trend_log_timer(elapsed_seconds);
}