mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Ensures interrupt changes are notified to the delegate.
This commit is contained in:
parent
d44734d105
commit
5f6711b72c
@ -774,7 +774,8 @@ void WD1770::update_status(std::function<void(Status &)> updater) {
|
||||
updater(status_);
|
||||
bool did_change =
|
||||
(status_.busy != old_status.busy) ||
|
||||
(status_.data_request != old_status.data_request);
|
||||
(status_.data_request != old_status.data_request) ||
|
||||
(status_.interrupt_request != old_status.interrupt_request);
|
||||
if(did_change) delegate_->wd1770_did_change_output(this);
|
||||
}
|
||||
else updater(status_);
|
||||
|
Loading…
Reference in New Issue
Block a user