Updates to allow for power, mute and volume buttons and feedback

This commit is contained in:
Neil Dorin
2020-03-13 14:57:10 -06:00
parent 1b096de377
commit 8716388be4
2 changed files with 41 additions and 10 deletions

View File

@@ -435,7 +435,7 @@ namespace PepperDash.Essentials
var butToken = devConf.Properties["buttons"];
if (butToken != null)
{
var buttons = butToken.ToObject<Dictionary<uint, Essentials.Core.Touchpanels.KeypadButton>>();
var buttons = butToken.ToObject<Dictionary<string, Essentials.Core.Touchpanels.KeypadButton>>();
var tpController = new Essentials.Core.Touchpanels.Mpc3TouchpanelController(devConf.Key, devConf.Name, Global.ControlSystem, buttons);
DeviceManager.AddDevice(tpController);
}