Skip to content

Commit

Permalink
[Gate] remove the wait period of the Gate
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Mar 12, 2024
1 parent 9ce0f91 commit d8e5b74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tool_services/gate/gate.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ void Gate_Loop(void)
if (gate_running == RUNNING)
{
// Manage input and output data
last_time = Luos_GetSystick();
DataManager_Run(gate);
#ifndef GATE_POLLING
if ((Luos_GetSystick() - last_time >= TimeOD_TimeTo_ms(update_time)) && (Luos_GetSystick() > last_time))
{
last_time = Luos_GetSystick();
DataManager_Run(gate);
#ifndef GATE_POLLING
if (first_conversion == true)
{
// This is the first time we perform a convertion
Expand All @@ -95,8 +95,8 @@ void Gate_Loop(void)
DataManager_collect(gate);
first_conversion = false;
}
#endif
}
#endif
}
else
{
Expand Down

0 comments on commit d8e5b74

Please sign in to comment.