Merge pull request #6326 from ajrhacker/wd_fdc_intrq

wd_fdc: Condition command completion interrupt on busy flag having be…
This commit is contained in:
ajrhacker 2020-02-19 09:47:06 -05:00 committed by GitHub
commit bed2f3a7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,7 @@ void wd_fdc_device_base::command_end()
main_state = sub_state = IDLE;
motor_timeout = 0;
if (!drq) {
if(!drq && (status & S_BUSY)) {
status &= ~S_BUSY;
intrq = true;
if(!intrq_cb.isnull())
@ -2194,7 +2194,7 @@ void wd_fdc_device_base::drop_drq()
drq = false;
if(!drq_cb.isnull())
drq_cb(false);
if (main_state == IDLE) {
if(main_state == IDLE && (status & S_BUSY)) {
status &= ~S_BUSY;
intrq = true;
if(!intrq_cb.isnull())