Skip to content

Commit

Permalink
testsuite/subghz: poll irq_status instead of status
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Dec 3, 2022
1 parent 4df1c54 commit 05727d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/src/subghz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 05727d7

Please sign in to comment.