Skip to content

Commit

Permalink
Fix channel mapping in models with custom layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinkham committed Apr 3, 2024
1 parent 4338826 commit 59b6f7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/overlays/PixelOverlayModel.cpp
Expand Up @@ -226,9 +226,9 @@ PixelOverlayModel::PixelOverlayModel(const Json::Value& c) :

for (int cho = 0; cho < 3; cho++) {
if (node != -1 && cho < channelsPerNode) {
channelMap[y * 3 + x + cho] = node * channelsPerNode + cho;
channelMap[(y * width * 3) + (x * 3) + cho] = node * channelsPerNode + cho;
} else {
channelMap[y * 3 + x + cho] = FPPD_OFF_CHANNEL;
channelMap[(y * width * 3) + (x * 3) + cho] = FPPD_OFF_CHANNEL;
}
}
}
Expand Down

0 comments on commit 59b6f7a

Please sign in to comment.