interrupt is wrong

This commit is contained in:
Filipriec
2025-10-28 17:39:27 +01:00
parent 5a7e5c6497
commit 62303e7cf1

View File

@@ -105,13 +105,14 @@ async fn main(spawner: Spawner) {
tim.enable_update_interrupt(true);
tim.start();
tx.set_high();
loop {
TIM2_TICK.wait().await;
tx.set_high();
TIM2_TICK.wait().await;
tx.set_low();
TIM2_TICK.wait().await;
Timer::after(Duration::from_millis(1000)).await;
// Poll RX pipe for new data (non-blocking)
if let Ok(n) = UART_RX.try_read(&mut rx_buf) {
if n > 0 {