Skip to content

Commit

Permalink
[#57] Support for KryoFlux and associated images (Part 194: Fixed wor…
Browse files Browse the repository at this point in the history
…king with eighth [aka. last] revolution)
  • Loading branch information
tomas-nestorovic committed Apr 16, 2024
1 parent 9e7367f commit 391d146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Main/src/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
const TDecoderMethod method;
bool resetDecoderOnIndex;
DWORD iNextTime,nLogTimes;
TLogTime indexPulses[Revolution::MAX+1];
TLogTime indexPulses[Revolution::MAX+2]; // "+2" = "+1+1" = "+A+B", A = tail IndexPulse of last possible Revolution, B = terminator
BYTE iNextIndexPulse,nIndexPulses;
TProfile profile;
TLogTime currentTime;
Expand Down
2 changes: 1 addition & 1 deletion Main/src/Image_TrackRW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@

void CImage::CTrackReaderWriter::AddIndexTime(TLogTime logTime){
// appends LogicalTime representing the position of the index pulse on the disk
ASSERT( nIndexPulses<Revolution::MAX );
ASSERT( nIndexPulses<=Revolution::MAX );
ASSERT( logTime>=0 );
indexPulses[nIndexPulses++]=logTime;
indexPulses[nIndexPulses]=INT_MAX;
Expand Down

0 comments on commit 391d146

Please sign in to comment.