Merge pull request #58 from kbleeke/clear-data-unavailable
clear DATA_UNAVAILABLE irq
This commit is contained in:
commit
e6e5685f7c
@ -310,6 +310,12 @@ where
|
|||||||
if irq & IRQ_F2_PACKET_AVAILABLE != 0 {
|
if irq & IRQ_F2_PACKET_AVAILABLE != 0 {
|
||||||
self.check_status(buf).await;
|
self.check_status(buf).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if irq & IRQ_DATA_UNAVAILABLE != 0 {
|
||||||
|
// TODO what should we do here?
|
||||||
|
warn!("IRQ DATA_UNAVAILABLE, clearing...");
|
||||||
|
self.bus.write16(FUNC_BUS, REG_BUS_INTERRUPT, 1).await;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Handle F2 events while status register is set
|
/// Handle F2 events while status register is set
|
||||||
|
Loading…
Reference in New Issue
Block a user