From b2e36b4dfe2c7f8f90817dbd3be3896a7d141444 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Fri, 7 Jan 2022 12:49:40 -0500 Subject: [PATCH] tie the flush delay to the drive spindown --- apple/diskii.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apple/diskii.cpp b/apple/diskii.cpp index 4fa8ce5..b0994fa 100644 --- a/apple/diskii.cpp +++ b/apple/diskii.cpp @@ -26,9 +26,8 @@ // how many CPU cycles do we wait to spin down the disk drive? 1023000 == 1 second #define SPINDOWNDELAY (1023000) -// 3 second delay before flushing. 10 seconds is too long. 3 is -// arbitrarily shorter... -#define FLUSHDELAY (1023000 * 3) +// When the drive spins down, we also need to be sure its contents are flushed. +#define FLUSHDELAY SPINDOWNDELAY #define SPINFOREVER -2 #define NOTSPINNING -1