Reduce polarity switch time to 5 ms
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user