Merge pull request #58 from kbleeke/clear-data-unavailable

clear DATA_UNAVAILABLE irq
This commit is contained in:
Dario Nieuwenhuis 2023-03-30 10:30:53 +00:00 committed by GitHub
commit e6e5685f7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,6 +310,12 @@ where
if irq & IRQ_F2_PACKET_AVAILABLE != 0 {
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