]> Untitled Git - pico1541.git/commitdiff
Check for image in drive
authorMaxwell Beck <max@rastertail.net>
Sat, 28 Dec 2024 23:07:04 +0000 (17:07 -0600)
committerMaxwell Beck <max@rastertail.net>
Sat, 28 Dec 2024 23:07:04 +0000 (17:07 -0600)
src/drive.c

index 8eb1bfdf0848fcf429ca580e1312423b64ac1e01..4aa0a08cfd7fb010e6922a09016cb07eb0269b53 100644 (file)
@@ -110,7 +110,7 @@ bool drive_cycle(drive_t *drive, uint8_t cycles, bool advance) {
 
                                drive->gcr_bits = 10;
                                */
-                               if (drive->spinning) {
+                               if (drive->image != NULL && drive->spinning) {
                                        if (drive->gap_remain > 0) {
                                                drive->gap_remain--;
                                                drive->gcr_word = 0x55;