fix: add tx queue
This commit is contained in:
20
main.c
20
main.c
@@ -192,15 +192,15 @@ int main() {
|
||||
}
|
||||
#endif
|
||||
|
||||
uint32_t now = millis();
|
||||
if (now - last_led_toggle_time > LED_TOGGLE_INTERVAL_MS) {
|
||||
if (led_state) {
|
||||
GPIOA->BSHR = (1 << LED1_PIN);
|
||||
} else {
|
||||
GPIOA->BSHR = (1 << (LED1_PIN + 16));
|
||||
}
|
||||
led_state = !led_state;
|
||||
last_led_toggle_time = now;
|
||||
}
|
||||
// uint32_t now = millis();
|
||||
// if (now - last_led_toggle_time > LED_TOGGLE_INTERVAL_MS) {
|
||||
// if (led_state) {
|
||||
// GPIOA->BSHR = (1 << LED1_PIN);
|
||||
// } else {
|
||||
// GPIOA->BSHR = (1 << (LED1_PIN + 16));
|
||||
// }
|
||||
// led_state = !led_state;
|
||||
// last_led_toggle_time = now;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user