fix: add tx queue

This commit is contained in:
2025-11-09 12:15:13 +06:00
parent 06012c613a
commit 5445c27271
7 changed files with 184 additions and 93 deletions

20
main.c
View File

@@ -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;
// }
}
}