diff --git a/Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf b/Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf index db11bd5d40..c45eb13878 100644 --- a/Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf +++ b/Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf @@ -2665,9 +2665,9 @@ Function PSQ_DAScale(device, s) ED_AddEntryToLabnotebook(device, key, maxSlopeLBN, overrideSweepNo = s.sweepNo, unit = "% of Hz/pA") if(PSQ_DS_CheckFitResults(device, s.sweepNo, s.headstage, fitOffset, fitSlope, fromSupra = 1)) - WAVE/D/Z futureDAScales = PSQ_DS_GatherOvershootCorrection(apfreq, DAScales, maxFrequencyChangePercent) + WAVE/D/Z futureDAScales = PSQ_DS_GatherOvershootCorrection(apfreqFromSupra, DAScalesFromSupra, maxFrequencyChangePercent) else - dascale = PSQ_DS_CalculateDAScale(fitOffset[inf], fitSlope[inf], apfreq[inf], maxFrequencyChangePercent) + dascale = PSQ_DS_CalculateDAScale(fitOffset[inf], fitSlope[inf], apfreqFromSupra[inf], maxFrequencyChangePercent) Make/FREE/D futureDAScales = {dascale} endif