fix(color): rename 6x1 layout for consistency and add to Companion (#7055)

This commit is contained in:
philmoz
2026-02-01 07:44:26 +10:00
committed by GitHub
parent 7ebfb48823
commit 99013f7e0d
5 changed files with 25 additions and 16 deletions
@@ -565,7 +565,11 @@ void r_screen_id(void* user, uint8_t* data, uint32_t bitoffs,
auto tw = reinterpret_cast<YamlTreeWalker*>(user);
auto screenData = g_model.getScreenData(tw->getElmts(1));
screenData->LayoutId = val;
// Convert renamed layout (TODO: remove in the future)
if (strncmp(val, "Layout6x1", 9) == 0)
screenData->LayoutId ="Layout1x6";
else
screenData->LayoutId = val;
}
bool w_screen_id(void* user, uint8_t* data, uint32_t bitoffs,