From 05727d777a36f60f805250a072a8d31b3ccce671 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Sat, 3 Dec 2022 08:34:11 -0800 Subject: [PATCH] testsuite/subghz: poll irq_status instead of status --- testsuite/src/subghz.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/src/subghz.rs b/testsuite/src/subghz.rs index 330922c29d0..5ea571ca54e 100644 --- a/testsuite/src/subghz.rs +++ b/testsuite/src/subghz.rs @@ -102,8 +102,8 @@ fn tx_or_panic(sg: &mut MySubghz, rfs: &mut RfSwitch) { unwrap!(sg.set_tx(Timeout::DISABLED)); let start_cc: u32 = DWT::cycle_count(); loop { - let status: Status = unwrap!(sg.status()); - if status.cmd() == Ok(CmdStatus::Complete) { + let (status, irq_status): (Status, u16) = unwrap!(sg.irq_status()); + if irq_status & Irq::TxDone.mask() { rfs.set_rx(); defmt::info!("TX done"); break;