diff --git a/src/main.rs b/src/main.rs index e3ecd75c167f34fae4af9260580c5f4db1201557..161e8b6e804d279fb58e45b261c1695c0e30ec9c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -291,7 +291,7 @@ mod app { } } - #[task(shared = [radio, spi_data, pi_tx, other_tx_buf])] + #[task(priority = 1, shared = [radio, spi_data, pi_tx, other_tx_buf])] fn get_radio_temp(mut ctx: get_radio_temp::Context) { // get temp every second @@ -310,7 +310,7 @@ mod app { get_radio_temp::spawn_after(1u64.secs()).unwrap(); } - #[task(shared = [radio])] + #[task(priority = 1, shared = [radio])] fn run_radio_interrupt(mut ctx: run_radio_interrupt::Context) { ctx.shared.radio.lock(|r| r.interrupt().unwrap());