Comment
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user