Skip to content

Commit db9bbb6

Browse files
committed
Allow applied voltage to be persistent after workflow stops
1 parent d8c3337 commit db9bbb6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

OpenEphys.Onix1/ConfigureNeuropixelsV2ePortController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ protected override bool ConfigurePortVoltage(DeviceContext device, out double vo
2727
return false;
2828
}
2929

30-
3130
void SetVoltage(DeviceContext device, double voltage)
3231
{
3332
device.WriteRegister(PortController.PORTVOLTAGE, 0);

OpenEphys.Onix1/ConfigurePortController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
5959
.ConfigureLink(context =>
6060
{
6161
var device = context.GetDeviceContext(deviceAddress, DeviceType);
62-
void dispose() { device.WriteRegister(PortController.PORTVOLTAGE, 0); PortVoltage.Applied = null; }
62+
void dispose() { device.WriteRegister(PortController.PORTVOLTAGE, 0); }
6363
device.WriteRegister(PortController.ENABLE, 1);
6464

6565
bool serdesLock = false;

0 commit comments

Comments
 (0)