From 391d1464df9d86031a4bece23c0456573645d159 Mon Sep 17 00:00:00 2001 From: tomascz Date: Tue, 16 Apr 2024 10:03:39 +0200 Subject: [PATCH] [#57] Support for KryoFlux and associated images (Part 194: Fixed working with eighth [aka. last] revolution) --- Main/src/Image.h | 2 +- Main/src/Image_TrackRW.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Main/src/Image.h b/Main/src/Image.h index e8b1acb4..8768ca43 100644 --- a/Main/src/Image.h +++ b/Main/src/Image.h @@ -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; diff --git a/Main/src/Image_TrackRW.cpp b/Main/src/Image_TrackRW.cpp index 32881529..a0bbcd2a 100644 --- a/Main/src/Image_TrackRW.cpp +++ b/Main/src/Image_TrackRW.cpp @@ -1415,7 +1415,7 @@ void CImage::CTrackReaderWriter::AddIndexTime(TLogTime logTime){ // appends LogicalTime representing the position of the index pulse on the disk - ASSERT( nIndexPulses=0 ); indexPulses[nIndexPulses++]=logTime; indexPulses[nIndexPulses]=INT_MAX;