Skip to content

Commit

Permalink
Fix GPIO info in channel output UI for shared outputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinkham committed Nov 14, 2023
1 parent 599941d commit 355a011
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion www/co-pixelStrings.php
Original file line number Diff line number Diff line change
Expand Up @@ -954,8 +954,14 @@ function GetPixelStringRows()
function GetPixelStringPins()
{
const subType = GetPixelStringCapeFileName();
const capeInfo = KNOWN_CAPES[subType];
var capeInfo = KNOWN_CAPES[subType];

if (capeInfo) {
for (var i = 0; i < capeInfo.outputs.length; i++) {
if (capeInfo.outputs[i].hasOwnProperty('sharedOutput')) {
capeInfo.outputs[i] = capeInfo.outputs[capeInfo.outputs[i].sharedOutput];
}
}
return capeInfo.outputs && (capeInfo.outputs || []).map(info => info.pin);
}
return [];
Expand Down

0 comments on commit 355a011

Please sign in to comment.