add some debug statements and fix presets file loading

This commit is contained in:
Andrew Welker
2020-12-09 16:18:21 -07:00
parent 3e56859943
commit f8ae6264f7
3 changed files with 6 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ namespace PepperDash.Essentials.Room.Config
[JsonProperty("techPin")]
public string TechPin;
[JsonProperty("presetFileName")]
[JsonProperty("presetsFileName")]
public string PresetsFileName;
[JsonProperty("scheduledEvents")]

View File

@@ -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;