From df3838ef78d4ad45f4f5c42cebf48be491c6e980 Mon Sep 17 00:00:00 2001 From: Maxwell Beck Date: Sat, 28 Dec 2024 17:07:04 -0600 Subject: [PATCH] Check for image in drive --- src/drive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2