Skip to content

Commit

Permalink
fix: changes outlet joins offset to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
aknous committed Oct 17, 2024
1 parent 8e67cbb commit f7d2302
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Pdu-Wattbox-Epi/WattboxController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,14 @@ public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, E

NameFeedback.LinkInputSig(trilist.StringInput[joinMap.Name.JoinNumber]);

if ((int)joinMap.OutletName.JoinNumber - (int)joinStart > 0)

var index = 0;
foreach (var o in PduOutlets.Select(outlet => outlet.Value).OfType<WattboxOutlet>())
{
var index = 0;
foreach (var o in PduOutlets.Select(outlet => outlet.Value).OfType<WattboxOutlet>())
{
var i = index;
o.LinkOutlet(trilist, joinMap, i);
index++;
}
}
var i = index;
o.LinkOutlet(trilist, joinMap, i);
index += 4;
}

trilist.OnlineStatusChange += (d, args) =>
{
Expand Down

0 comments on commit f7d2302

Please sign in to comment.