From d8e5b74a74ef5af8fe71687672c0d866c2162ea1 Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Tue, 12 Mar 2024 16:22:50 +0100 Subject: [PATCH] [Gate] remove the wait period of the Gate --- tool_services/gate/gate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tool_services/gate/gate.c b/tool_services/gate/gate.c index 9a4696155..bacd148c7 100644 --- a/tool_services/gate/gate.c +++ b/tool_services/gate/gate.c @@ -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 @@ -95,8 +95,8 @@ void Gate_Loop(void) DataManager_collect(gate); first_conversion = false; } -#endif } +#endif } else {