From ce8f7825773474709f7f7b4fdb207e3678bb4d68 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 6 Oct 2021 04:42:44 -0700 Subject: [PATCH] Corrects meaning of IBM-style RDY. --- Storage/Disk/Drive.cpp | 2 +- Storage/Disk/Drive.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Storage/Disk/Drive.cpp b/Storage/Disk/Drive.cpp index ef057b387..5f805dd71 100644 --- a/Storage/Disk/Drive.cpp +++ b/Storage/Disk/Drive.cpp @@ -85,7 +85,7 @@ void Drive::step(HeadPosition offset) { return; } - if(ready_type_ == ReadyType::IBMRDY) { + if(disk_ && ready_type_ == ReadyType::IBMRDY) { is_ready_ = true; } diff --git a/Storage/Disk/Drive.hpp b/Storage/Disk/Drive.hpp index 25b7a442c..f7671e236 100644 --- a/Storage/Disk/Drive.hpp +++ b/Storage/Disk/Drive.hpp @@ -29,7 +29,7 @@ class Drive: public ClockingHint::Source, public TimedEventLoop { ShugartRDY, /// Indicates that RDY will go active when the motor is on and two index holes have passed; it will go inactive when the disk is ejected. ShugartModifiedRDY, - /// Indicates that RDY will go active when the head steps; it will go inactive when the disk is ejected. + /// Indicates that RDY will go active when the head steps if a disk is present; it will go inactive when the disk is ejected. IBMRDY, };