diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-03-30 10:30:53 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-30 10:30:53 +0000 |
| commit | e6e5685f7c75c3f5f5475e64101de90e6999b79c (patch) | |
| tree | 8f5b21e403a1f74cefbb4c65355ae33b29eb0588 /src/runner.rs | |
| parent | d3fb9ddf3374acb7772bf5da16f15fb4e5534958 (diff) | |
| parent | 69db1535b21d529abe5c92fa88ea771ca0b1d721 (diff) | |
Merge pull request #58 from kbleeke/clear-data-unavailable
clear DATA_UNAVAILABLE irq
Diffstat (limited to 'src/runner.rs')
| -rw-r--r-- | src/runner.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runner.rs b/src/runner.rs index ccdbbf1ac..deb45f9f4 100644 --- a/src/runner.rs +++ b/src/runner.rs | |||
| @@ -310,6 +310,12 @@ where | |||
| 310 | if irq & IRQ_F2_PACKET_AVAILABLE != 0 { | 310 | if irq & IRQ_F2_PACKET_AVAILABLE != 0 { |
| 311 | self.check_status(buf).await; | 311 | self.check_status(buf).await; |
| 312 | } | 312 | } |
| 313 | |||
| 314 | if irq & IRQ_DATA_UNAVAILABLE != 0 { | ||
| 315 | // TODO what should we do here? | ||
| 316 | warn!("IRQ DATA_UNAVAILABLE, clearing..."); | ||
| 317 | self.bus.write16(FUNC_BUS, REG_BUS_INTERRUPT, 1).await; | ||
| 318 | } | ||
| 313 | } | 319 | } |
| 314 | 320 | ||
| 315 | /// Handle F2 events while status register is set | 321 | /// Handle F2 events while status register is set |
