From f0dfc12fe0fe17ae8e720db6aac48ee6ad663415 Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Sat, 16 May 2026 18:41:04 +0200 Subject: [PATCH] Reduce polarity switch time to 5 ms --- fw/Core/Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fw/Core/Src/main.c b/fw/Core/Src/main.c index beaa50d..562515f 100644 --- a/fw/Core/Src/main.c +++ b/fw/Core/Src/main.c @@ -137,7 +137,7 @@ int main(void) /* Infinite loop */ /* USER CODE BEGIN WHILE */ GPIO_PinState state = GPIO_PIN_RESET; - const uint32_t polarity_switch_period_ms = 10; + const uint32_t polarity_switch_period_ms = 5; uint32_t next_polarity_switch_ms = HAL_GetTick() + polarity_switch_period_ms; bool polarity = true; while (1)