Skip to content

Commit

Permalink
fix(color): Reading of RGB theme colors in hex format (#4222)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored and pfeerick committed Oct 19, 2023
1 parent 3fcb75f commit 0e6a5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/theme_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static uint32_t r_color(const YamlNode* node, const char* val, uint8_t val_len)
{
if ((strncmp(val, RGBSTRING, strlen(RGBSTRING)) == 0) && (val[val_len - 1] == ')')) {
int r, g, b;
int numTokens = sscanf(val, "RGB(%d,%d,%d)", &r, &g, &b);
int numTokens = sscanf(val, "RGB(%i,%i,%i)", &r, &g, &b);

if (numTokens == 3)
return RGB(r, g, b);
Expand Down

0 comments on commit 0e6a5c6

Please sign in to comment.