Skip to content

Commit 45acfb0

Browse files
committed
Add basic troubleshooting step when lock cannot be acquired
1 parent faf6ea1 commit 45acfb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OpenEphys.Onix1/ConfigurePortController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
8484
.GetCustomAttribute<DescriptionAttribute>()?
8585
.Description ?? "Address " + deviceAddress.ToString();
8686
var message = portVoltage.Requested.HasValue ?
87-
$"Unable to acquire communication lock on {portString}" :
88-
$"Unable to acquire communication lock on {portString}. You may need to manually specify a PortVoltage greater than {PortVoltage.Applied} volts, the maximum automatic value for this device.";
87+
$"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on." :
88+
$"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on."
89+
+ $"\n\nYou may need to manually specify a PortVoltage greater than {PortVoltage.Applied} volts, the maximum automatic value for this device.";
8990

9091
dispose();
9192
throw new InvalidOperationException(message);

0 commit comments

Comments
 (0)