From: Maxwell Beck Date: Sat, 28 Dec 2024 23:07:04 +0000 (-0600) Subject: Check for image in drive X-Git-Url: https://rastertail.net/scm/?a=commitdiff_plain;h=df3838ef78d4ad45f4f5c42cebf48be491c6e980;p=pico1541.git Check for image in drive --- diff --git a/src/drive.c b/src/drive.c index 8eb1bfd..4aa0a08 100644 --- a/src/drive.c +++ b/src/drive.c @@ -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;