From bb280661689d57357c46ac5238ed5f72f1d02421 Mon Sep 17 00:00:00 2001 From: tomascz Date: Fri, 25 Feb 2022 20:04:59 +0100 Subject: [PATCH] [#64] Internal FDD improvements and bugfixes (Part 15: Fixed medium recognition) --- Main/src/FDD.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Main/src/FDD.cpp b/Main/src/FDD.cpp index 88c12696..ad0165ed 100644 --- a/Main/src/FDD.cpp +++ b/Main/src/FDD.cpp @@ -879,7 +879,7 @@ error: switch (const TStdWinError err=::GetLastError()){ } } // . executing the above composed Plan - const bool silentlyRecoverFromErrors=rev>=Revolution::NEXT; + const bool silentlyRecoverFromErrors=rev>=Revolution::ANY_GOOD; for( const TPlanStep *pPlanStep=plan; pPlanSteppsi; const BYTE index=pPlanStep->indexIntoOutputBuffers; @@ -1046,6 +1046,9 @@ fdrawcmd: return ::DeviceIoControl( _HANDLE, IOCTL_FD_SET_DATA_RATE, &transfe UnformatInternalTrack(cyl,0); internalTracks[cyl][0]=pit; } + // - reverting to original data transfer speed + if (floppyType!=Medium::UNKNOWN) + SetDataTransferSpeed( floppyType ); // - Medium (possibly) recognized rOutMediumType=bestMediumType; // may be Medium::UNKNOWN return ERROR_SUCCESS;