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:
@@ -330,9 +330,9 @@ int main(
|
|||||||
dlenv_maintenance_timer(elapsed_seconds);
|
dlenv_maintenance_timer(elapsed_seconds);
|
||||||
Load_Control_State_Machine_Handler();
|
Load_Control_State_Machine_Handler();
|
||||||
elapsed_milliseconds = elapsed_seconds * 1000;
|
elapsed_milliseconds = elapsed_seconds * 1000;
|
||||||
handler_cov_task();
|
|
||||||
tsm_timer_milliseconds(elapsed_milliseconds);
|
tsm_timer_milliseconds(elapsed_milliseconds);
|
||||||
}
|
}
|
||||||
|
handler_cov_task();
|
||||||
/* output */
|
/* output */
|
||||||
|
|
||||||
/* blink LEDs, Turn on or off outputs, etc */
|
/* blink LEDs, Turn on or off outputs, etc */
|
||||||
|
|||||||
Reference in New Issue
Block a user