From eaabb2ce9725930ca57a38fff27cc8bee57e9c35 Mon Sep 17 00:00:00 2001 From: philmoz Date: Thu, 19 Oct 2023 12:46:02 +1100 Subject: [PATCH] fix(color): Reading of RGB theme colors in hex format (#4222) --- radio/src/gui/colorlcd/theme_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/theme_manager.cpp b/radio/src/gui/colorlcd/theme_manager.cpp index 4b9ff4695..88d4d7d77 100644 --- a/radio/src/gui/colorlcd/theme_manager.cpp +++ b/radio/src/gui/colorlcd/theme_manager.cpp @@ -43,7 +43,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);