Skip to content

Commit

Permalink
[#64] Internal FDD improvements and bugfixes (Part 15: Fixed medium r…
Browse files Browse the repository at this point in the history
…ecognition)
  • Loading branch information
tomas-nestorovic committed Feb 25, 2022
1 parent 0ccb68f commit bb28066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Main/src/FDD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; pPlanStep<planEnd; pPlanStep++ ){
TInternalTrack::TSectorInfo *const psi=pPlanStep->psi;
const BYTE index=pPlanStep->indexIntoOutputBuffers;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bb28066

Please sign in to comment.