Skip to content

Commit 440a2bf

Browse files
Fix error check counter resync
1 parent 37b222a commit 440a2bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CommandLineUtilities/ProgramDmaBench.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ class ProgramDmaBench: public Program
569569
}
570570

571571
if (hasError && !mOptions.noResyncCounter) {
572-
// Resync the counter
573-
mLinkCounters[linkId] = getDataGeneratorCounterFromPage(pageAddress);
572+
// There was an error, so we resync the counter on the next page
573+
mLinkCounters[linkId] = LINK_COUNTER_INITIAL_VALUE;
574574
}
575575
}
576576

0 commit comments

Comments
 (0)