feat(bw128): add customisable switches edit page, allow editing custom colors (#5799)
This commit is contained in:
@@ -41,10 +41,6 @@ uint8_t getRGBColorIndex(uint32_t color)
|
||||
if (color == colorTable[i])
|
||||
return(i + 1);
|
||||
}
|
||||
for (uint8_t i = 0; i < DIM(colorTabl2); i++) {
|
||||
if (color == colorTabl2[i])
|
||||
return(i + 1);
|
||||
}
|
||||
return 0; // Custom value set with Companion
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user