mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 02:05:08 +00:00
Moved generation of Mpc3TouchpanelController device from core device factory into ControlSystem LoadDevices() method.
This commit is contained in:
@@ -83,21 +83,6 @@ namespace PepperDash.Essentials.Core
|
||||
|
||||
return new C2nRthsController(key, name, new C2nRths(cresnetId, Global.ControlSystem));
|
||||
}
|
||||
if (typeName.StartsWith("mpc3"))
|
||||
{
|
||||
var butToken = dc.Properties["buttons"];
|
||||
if (butToken != null)
|
||||
{
|
||||
var buttons = butToken.ToObject<Dictionary<uint, KeypadButton>>();
|
||||
return new Mpc3TouchpanelController(key, name, Global.ControlSystem, buttons);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Console(0, Debug.ErrorLogLevel.Error, "Error: Unable to deserialize buttons collection for device: {0}", key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user