Reduce polarity switch time to 1 ms
This commit is contained in:
1 parent
b900dec77a
commit
44560253f8
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user