mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix: resolves typo of hdpsXxx type name in the factory
This commit is contained in:
parent
759fb1d729
commit
b06d0c0deb
1 changed files with 5 additions and 5 deletions
|
|
@ -52,7 +52,7 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||||
/// <param name="chassis">HdPs401 device instance</param>
|
/// <param name="chassis">HdPs401 device instance</param>
|
||||||
/// <param name="props"></param>
|
/// <param name="props"></param>
|
||||||
public HdPsXxxController(string key, string name, HdPsXxx chassis, HdPsXxxPropertiesConfig props)
|
public HdPsXxxController(string key, string name, HdPsXxx chassis, HdPsXxxPropertiesConfig props)
|
||||||
: base(key, name)
|
: base(key, name, chassis)
|
||||||
{
|
{
|
||||||
_chassis = chassis;
|
_chassis = chassis;
|
||||||
Name = name;
|
Name = name;
|
||||||
|
|
@ -584,7 +584,7 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||||
{
|
{
|
||||||
public HdSp401ControllerFactory()
|
public HdSp401ControllerFactory()
|
||||||
{
|
{
|
||||||
TypeNames = new List<string>() { "hdsp401", "hdsp402", "hdsp621", "hdsp622" };
|
TypeNames = new List<string>() { "hdps401", "hdps402", "hdps621", "hdps622" };
|
||||||
}
|
}
|
||||||
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
||||||
{
|
{
|
||||||
|
|
@ -610,15 +610,15 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||||
{
|
{
|
||||||
return new HdPsXxxController(key, name, new HdPs401(ipid, Global.ControlSystem), props);
|
return new HdPsXxxController(key, name, new HdPs401(ipid, Global.ControlSystem), props);
|
||||||
}
|
}
|
||||||
case ("hdsp402"):
|
case ("hdps402"):
|
||||||
{
|
{
|
||||||
return new HdPsXxxController(key, name, new HdPs402(ipid, Global.ControlSystem), props);
|
return new HdPsXxxController(key, name, new HdPs402(ipid, Global.ControlSystem), props);
|
||||||
}
|
}
|
||||||
case ("hdsp621"):
|
case ("hdps621"):
|
||||||
{
|
{
|
||||||
return new HdPsXxxController(key, name, new HdPs621(ipid, Global.ControlSystem), props);
|
return new HdPsXxxController(key, name, new HdPs621(ipid, Global.ControlSystem), props);
|
||||||
}
|
}
|
||||||
case ("hdsp622"):
|
case ("hdps622"):
|
||||||
{
|
{
|
||||||
return new HdPsXxxController(key, name, new HdPs622(ipid, Global.ControlSystem), props);
|
return new HdPsXxxController(key, name, new HdPs622(ipid, Global.ControlSystem), props);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue