1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-09 21:29:53 +00:00

Ensured spin-up doesn't occur if there's no motor line.

This commit is contained in:
Thomas Harte 2016-12-31 16:18:30 -05:00
parent 1ea4f0d79d
commit c994fa39f6

View File

@ -782,7 +782,7 @@ void WD1770::posit_event(Event new_event_type)
status.lost_data = false; status.lost_data = false;
}); });
set_motor_on(true); set_motor_on(true);
if(!(command_ & 0x08)) goto write_track_test_delay; if(!(command_ & 0x08) || !has_motor_on_line()) goto write_track_test_delay;
index_hole_count_ = 0; index_hole_count_ = 0;
write_track_test_index_hole_count: write_track_test_index_hole_count: