diff options
| author | kbleeke <[email protected]> | 2023-03-27 17:24:45 +0200 |
|---|---|---|
| committer | kbleeke <[email protected]> | 2023-03-27 18:19:07 +0200 |
| commit | 056df98d475c3be307b7c9c3038e02b4ef79fa08 (patch) | |
| tree | 3f90f3c52ea2e61eb50c6dc206c2c72a767eb714 /src/runner.rs | |
| parent | 273e6f5b835afe9883a37814a76caba2084d6dc2 (diff) | |
use send status feature of cyw43 instead of manually checking status
Diffstat (limited to 'src/runner.rs')
| -rw-r--r-- | src/runner.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/runner.rs b/src/runner.rs index abfac3ae3..ccdbbf1ac 100644 --- a/src/runner.rs +++ b/src/runner.rs | |||
| @@ -315,10 +315,7 @@ where | |||
| 315 | /// Handle F2 events while status register is set | 315 | /// Handle F2 events while status register is set |
| 316 | async fn check_status(&mut self, buf: &mut [u32; 512]) { | 316 | async fn check_status(&mut self, buf: &mut [u32; 512]) { |
| 317 | loop { | 317 | loop { |
| 318 | let mut status = 0xFFFF_FFFF; | 318 | let status = self.bus.status(); |
| 319 | while status == 0xFFFF_FFFF { | ||
| 320 | status = self.bus.read32(FUNC_BUS, REG_BUS_STATUS).await; | ||
| 321 | } | ||
| 322 | trace!("check status{}", FormatStatus(status)); | 319 | trace!("check status{}", FormatStatus(status)); |
| 323 | 320 | ||
| 324 | if status & STATUS_F2_PKT_AVAILABLE != 0 { | 321 | if status & STATUS_F2_PKT_AVAILABLE != 0 { |
