diff --git a/src/transmissionReconstruction/detection/detection.cpp b/src/transmissionReconstruction/detection/detection.cpp index 7e68e8f..8482d8d 100644 --- a/src/transmissionReconstruction/detection/detection.cpp +++ b/src/transmissionReconstruction/detection/detection.cpp @@ -292,7 +292,7 @@ namespace Recon { expectedSOSWater, offsetElectronicSamples, detectionWindowSOS, minSpeedOfSound, maxSpeedOfSound, gaussWindow); - diffStartSearch = timeResult1.startSearch - timeResult1.startSearch; + diffStartSearch = timeResult1.startSearch - timeResult2.startSearch; } auto _AscanBlock = timeResult1.AscanBlockProcessed; auto _AscanRefBlock = timeResult2.AscanBlockProcessed;