Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions OpenEphys.Onix1/ConfigurePortController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
.GetCustomAttribute<DescriptionAttribute>()?
.Description ?? "Address " + deviceAddress.ToString();
var message = portVoltage.Requested.HasValue ?
$"Unable to acquire communication lock on {portString}" :
$"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.";
$"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on." :
$"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on."
+ $"\n\nYou may need to manually specify a PortVoltage greater than {PortVoltage.Applied} volts, the maximum automatic value for this device.";

dispose();
throw new InvalidOperationException(message);
Expand Down