This commit is contained in:
Jan Mrna
2026-05-16 18:50:14 +02:00
parent 15c32756c1
commit f38e50937f
+2
View File
@@ -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;