Resolve conversion from int to char

This commit is contained in:
Christian Göttsche 2020-11-24 17:52:05 +01:00 committed by BenBE
parent 1e9b184367
commit f0a9dfc37e
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ static void LEDMeterMode_draw(Meter* this, int x, int y, int w) {
int xx = x + strlen(this->caption); int xx = x + strlen(this->caption);
int len = RichString_sizeVal(out); int len = RichString_sizeVal(out);
for (int i = 0; i < len; i++) { for (int i = 0; i < len; i++) {
char c = RichString_getCharVal(out, i); int c = RichString_getCharVal(out, i);
if (c >= '0' && c <= '9') { if (c >= '0' && c <= '9') {
LEDMeterMode_drawDigit(xx, y, c - 48); LEDMeterMode_drawDigit(xx, y, c - 48);
xx += 4; xx += 4;