mirror of
https://github.com/TomHarte/CLK.git
synced 2025-07-29 08:24:28 +00:00
Ensures proper upward propagation of sleeping from first start.
This commit is contained in:
@@ -25,6 +25,7 @@ DiskII::DiskII() :
|
|||||||
{
|
{
|
||||||
drives_[0].set_sleep_observer(this);
|
drives_[0].set_sleep_observer(this);
|
||||||
drives_[1].set_sleep_observer(this);
|
drives_[1].set_sleep_observer(this);
|
||||||
|
drives_[active_drive_].set_event_delegate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiskII::set_control(Control control, bool on) {
|
void DiskII::set_control(Control control, bool on) {
|
||||||
@@ -138,6 +139,7 @@ void DiskII::set_controller_can_sleep() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool DiskII::is_write_protected() {
|
bool DiskII::is_write_protected() {
|
||||||
|
return true;
|
||||||
return !!(stepper_mask_ & 2) | drives_[active_drive_].get_is_read_only();
|
return !!(stepper_mask_ & 2) | drives_[active_drive_].get_is_read_only();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user