mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 20:24:57 +00:00
add some debug statements and fix presets file loading
This commit is contained in:
@@ -17,7 +17,7 @@ namespace PepperDash.Essentials.Room.Config
|
||||
[JsonProperty("techPin")]
|
||||
public string TechPin;
|
||||
|
||||
[JsonProperty("presetFileName")]
|
||||
[JsonProperty("presetsFileName")]
|
||||
public string PresetsFileName;
|
||||
|
||||
[JsonProperty("scheduledEvents")]
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace PepperDash.Essentials
|
||||
|
||||
_tunerPresets = new DevicePresetsModel(String.Format("{0}-presets", config.Key), _config.PresetsFileName);
|
||||
|
||||
_tunerPresets.LoadChannels();
|
||||
_tunerPresets.SetFileName(_config.PresetsFileName);
|
||||
|
||||
_tunerPresets.PresetChanged += TunerPresetsOnPresetChanged;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user