Skip to content

Commit 4c7a00a

Browse files
committed
AI_EnsureCorrectMode: Don't select the amplifier when changing the clamp mode
The function does accept a selectAmp parameter already and also selects the amplifier if requested. So when we set the clamp mode in the end we either have selected the amplifier already or don't want to select it. So in both cases we don't have to select it again.
1 parent ea7a7e0 commit 4c7a00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/MIES/MIES_AmplifierInteraction.ipf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,7 @@ Function AI_EnsureCorrectMode(string device, variable headStage, [variable selec
19521952

19531953
if(setMode != storedMode)
19541954
print "There was a mismatch in clamp mode between MIES and the MCC. The MCC mode was switched to match the mode specified by MIES."
1955-
AI_SetClampMode(device, headStage, storedMode)
1955+
AI_SetClampMode(device, headStage, storedMode, selectAmp = 0)
19561956
endif
19571957

19581958
return 0

0 commit comments

Comments
 (0)