Skip to content

Commit

Permalink
Assign default device name
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Mar 12, 2024
1 parent fc18615 commit 684f004
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/ConfigureChannelParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ConfigureChannelParameter()
/// </summary>
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Gets or sets the channel parameter to configure.
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/ConfigureOutputChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ConfigureOutputChannel : Sink, INamedElement
[Category(ChannelCategory)]
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Gets or sets the output channel to configure.
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/ConfigureTriggerChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ConfigureTriggerChannel : Sink, INamedElement
[Category(ChannelCategory)]
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Gets or sets the output channel to configure.
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/SendCustomPulseTrain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class SendCustomPulseTrain : Sink<PulseOnset[]>
/// </summary>
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Gets or sets the identity of the custom pulse train to program.
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/SendCustomWaveform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class SendCustomWaveform : Sink<Mat>
/// </summary>
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Gets or sets the identity of the custom pulse train to program.
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/SetFixedVoltage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SetFixedVoltage : Sink
/// </summary>
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Gets or sets a value specifying the output channel to set to a fixed voltage.
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/TriggerOutputChannels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class TriggerOutputChannels : Sink
/// </summary>
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Gets or sets a value specifying which output channel triggers to set.
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.PulsePal/UpdateDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class UpdateDisplay : Sink<string>
/// </summary>
[TypeConverter(typeof(DeviceNameConverter))]
[Description("The name of the Pulse Pal device.")]
public string DeviceName { get; set; }
public string DeviceName { get; set; } = nameof(PulsePal);

/// <summary>
/// Writes an observable sequence of text strings to the Pulse Pal oLED display.
Expand Down

0 comments on commit 684f004

Please sign in to comment.