From a5f9f3019aebf13d2850fd56f4cb514755c1af96 Mon Sep 17 00:00:00 2001 From: Oskar Date: Fri, 4 Aug 2023 23:00:57 +0200 Subject: [PATCH] Reduce startup delay to 1s because discharge SDC blocking is done via PDU now --- sdcl-firmware/Core/Src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdcl-firmware/Core/Src/main.c b/sdcl-firmware/Core/Src/main.c index f399bd1..a6076fc 100644 --- a/sdcl-firmware/Core/Src/main.c +++ b/sdcl-firmware/Core/Src/main.c @@ -259,9 +259,8 @@ int main(void) mission_t new_mission = mission; // By default, don't change mission // Wait at least 1s to prevent bus error state while ABX is starting up - // Wait at least 5s for the discharge of the DC link (so AMS can't restart) // During that time, show loading animation to show LEDs work - while (HAL_GetTick() < 5000) { + while (HAL_GetTick() < 1000) { setMissionLED(M_MANUAL, GPIO_PIN_SET); HAL_Delay(150); setMissionLED(M_MANUAL, GPIO_PIN_RESET);