Reduce polarity switch time to 5 ms

This commit is contained in:
Jan Mrna
2026-05-16 18:41:04 +02:00
parent 4dd172d235
commit f0dfc12fe0
+1 -1
View File
@@ -137,7 +137,7 @@ int main(void)
/* Infinite loop */ /* Infinite loop */
/* USER CODE BEGIN WHILE */ /* USER CODE BEGIN WHILE */
GPIO_PinState state = GPIO_PIN_RESET; 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; uint32_t next_polarity_switch_ms = HAL_GetTick() + polarity_switch_period_ms;
bool polarity = true; bool polarity = true;
while (1) while (1)