Reduce polarity switch time to 1 ms

This commit is contained in:
Jan Mrna
2026-05-16 19:05:30 +02:00
parent b900dec77a
commit 44560253f8
+1 -1
View File
@@ -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)