lv_draw_label: inline recolor bugfix
This commit is contained in:
@@ -214,7 +214,7 @@ static uint8_t hex_char_to_num(char hex)
|
|||||||
if(hex >= '0' && hex <= '9') {
|
if(hex >= '0' && hex <= '9') {
|
||||||
result = hex - '0';
|
result = hex - '0';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
if(hex >= 'a') hex -= 'a' - 'A'; /*Convert to upper case*/
|
if(hex >= 'a') hex -= 'a' - 'A'; /*Convert to upper case*/
|
||||||
|
|
||||||
switch(hex) {
|
switch(hex) {
|
||||||
@@ -240,6 +240,7 @@ static uint8_t hex_char_to_num(char hex)
|
|||||||
result = 0;
|
result = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user