Skip to content

Commit

Permalink
[#64] Internal FDD improvements and bugfixes (Part 17: Any good data …
Browse files Browse the repository at this point in the history
…means sampling brand new revolutions)
  • Loading branch information
tomas-nestorovic committed Apr 3, 2022
1 parent bd30cf9 commit 7105bb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Main/src/FDD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,11 +951,12 @@ error: switch (const TStdWinError err=::GetLastError()){
break;
if (healthyDataExist)
break;
// > trying Next Revolutions if they contain healthy Data
// > trying several Next Revolutions if they contain healthy Data
rsi.currentRevolution=rsi.nRevolutions; // let the attempts be brand new Revolutions
for( char nTrials=3; true; ){
WORD w;
if (GetSectorData( cyl, head, Revolution::NEXT, &rsi.id, rsi.seqNum, &w, &TFdcStatus() ))
if (rsi.revolutions[rsi.nRevolutions-1].fdcStatus.IsWithoutError())
if (rsi.revolutions[rsi.currentRevolution].fdcStatus.IsWithoutError())
break;
if (--nTrials==0)
break;
Expand Down

0 comments on commit 7105bb8

Please sign in to comment.