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