Skip to content

Commit

Permalink
BREAKING CHANGE: remove outlet online feedback
Browse files Browse the repository at this point in the history
docs: update readme with new joinmap
  • Loading branch information
jtalborough committed Sep 18, 2024
1 parent f60b263 commit 417950a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
18 changes: 0 additions & 18 deletions src/Devices/ApDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,24 +292,6 @@ public override void LinkToApi(BasicTriList trilist, uint joinStart, string join
feedback.LinkInputSig(trilist.StringInput[joinActual]);
}

for (uint x = 0; x < joinMap.OutletOnline.JoinSpan; x++)
{
var outletIndex = x + 1;
var joinActual = outletIndex + joinMap.OutletName.JoinNumber;

if (!EnableAsOnline)
{
BoolFeedback feedback;
if (!TryGetOutletOnlineFeedback(outletIndex, out feedback))
continue;
Debug.Console(2, this, "Linking Outlet Online Feedback | OutletIndex:{0}, Join:{1}", outletIndex,
joinActual);
feedback.LinkInputSig(trilist.BooleanInput[joinActual]);
continue;
}
trilist.BooleanInput[joinActual].BoolValue = PduOutlets.ContainsKey((int)outletIndex);

}

for (uint x = 0; x < joinMap.OutletPowerOn.JoinSpan; x++)
{
Expand Down
14 changes: 0 additions & 14 deletions src/JoinMaps/ApDeviceJoinMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ public class ApDeviceJoinMap : JoinMapBaseAdvanced
JoinType = eJoinType.Serial
});

[JoinName("OutletOnline")]
public JoinDataComplete OutletOnline = new JoinDataComplete(
new JoinData
{
JoinNumber = 50,
JoinSpan = 50
},
new JoinMetadata
{
Description = "Outlet Online",
JoinCapabilities = eJoinCapabilities.ToSIMPL,
JoinType = eJoinType.Digital
});

[JoinName("OutletPowerOn")]
public JoinDataComplete OutletPowerOn = new JoinDataComplete(
new JoinData
Expand Down

0 comments on commit 417950a

Please sign in to comment.