From 34611dac20978a9c5021ff9885b3d2bcaa43badd Mon Sep 17 00:00:00 2001 From: "Jasper v. Blanckenburg" Date: Thu, 3 Aug 2023 16:11:09 +0200 Subject: [PATCH] Reduce startup delay The 5s discharge is managed via ABX/PDU --- 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 461b3f4..27a2846 100644 --- a/sdcl-firmware/Core/Src/main.c +++ b/sdcl-firmware/Core/Src/main.c @@ -256,9 +256,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);