From 44560253f864677d4b927696b52d259bb64e7dc2 Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Sat, 16 May 2026 19:05:30 +0200 Subject: [PATCH] Reduce polarity switch time to 1 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 2d73141..eb2b3d4 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 = 5; + const uint32_t polarity_switch_period_ms = 1; uint32_t next_polarity_switch_ms = HAL_GetTick() + polarity_switch_period_ms; bool polarity = true; while (1)