Moved the handler_cov_task() outside of 1-sec task to run every cycle since handler_cov_task() was modified to only to a single state/subscription per call (previously it did all subscriptions per call). This matches the non-gateway demo code.

This commit is contained in:
skarg
2014-01-17 04:33:43 +00:00
parent 3835dc8998
commit 717aaa9dfa
+1 -1
View File
@@ -330,9 +330,9 @@ int main(
dlenv_maintenance_timer(elapsed_seconds);
Load_Control_State_Machine_Handler();
elapsed_milliseconds = elapsed_seconds * 1000;
handler_cov_task();
tsm_timer_milliseconds(elapsed_milliseconds);
}
handler_cov_task();
/* output */
/* blink LEDs, Turn on or off outputs, etc */