aboutsummaryrefslogtreecommitdiff
path: root/src/runner.rs
diff options
context:
space:
mode:
authorkbleeke <[email protected]>2023-03-30 12:24:37 +0200
committerkbleeke <[email protected]>2023-03-30 12:24:37 +0200
commit69db1535b21d529abe5c92fa88ea771ca0b1d721 (patch)
tree1474364bf21256f2950ecf4bcc248bafdae98f0b /src/runner.rs
parentc15f07de4f4c0dbb9b70326aa42cb986c035a0ec (diff)
clear DATA_UNAVAILABLE irq
Diffstat (limited to 'src/runner.rs')
-rw-r--r--src/runner.rs6
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