Skip to content

Commit bac938d

Browse files
committed
Fixed error when using axopatch in i=0
1 parent ee07c86 commit bac938d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symphony-core/Symphony.ExternalDevices/AxopatchDevice.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public static IMeasurement ConvertOutput(IMeasurement sample, AxopatchInterop.Ax
240240
throw new ArgumentException("Sample units must be in Amps.", "sample");
241241
}
242242

243-
if (deviceParams.ExternalCommandSensitivityUnits != AxopatchInterop.ExternalCommandSensitivityUnits.A_V)
243+
if (deviceParams.ExternalCommandSensitivityUnits != AxopatchInterop.ExternalCommandSensitivityUnits.A_V && deviceParams.ExternalCommandSensitivityUnits != AxopatchInterop.ExternalCommandSensitivityUnits.OFF)
244244
{
245245
throw new AxopatchDeviceException("External command units are not A/V as expected for current device mode.");
246246
}

0 commit comments

Comments
 (0)