From f38e50937f08a7c61ba02b35c179814862ad4315 Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Sat, 16 May 2026 18:50:14 +0200 Subject: [PATCH] Comment --- fw/Core/Src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fw/Core/Src/main.c b/fw/Core/Src/main.c index 9f093f4..2d73141 100644 --- a/fw/Core/Src/main.c +++ b/fw/Core/Src/main.c @@ -160,6 +160,8 @@ int main(void) state = GPIO_PIN_RESET; } HAL_GPIO_WritePin(VDD_LEDL_EN_GPIO_Port, VDD_LEDL_EN_Pin, state); + + // Polarity switch (H-bridge control) if (HAL_GetTick() > next_polarity_switch_ms) { next_polarity_switch_ms = HAL_GetTick() + polarity_switch_period_ms;