fix #342: remove bug in code for right-justified text on OLED display
This commit is contained in:
parent
c63c31a1d4
commit
e2569f4bd5
|
|
@ -318,7 +318,7 @@ void U8x8Display::drawString(uint16_t x, uint16_t y, const char *s, int16_t widt
|
|||
}
|
||||
if(width<0) {
|
||||
int l = strlen(buf);
|
||||
memset(buf, ' ', width-l);
|
||||
memset(buf, ' ', -width-l);
|
||||
utf2latin15(s, buf+l, 50-l);
|
||||
}
|
||||
u8x8->drawString(x, y, buf);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const char *version_name = "rdzTTGOsonde";
|
||||
const char *version_id = "devel20221217";
|
||||
const char *version_id = "devel20230104";
|
||||
const int SPIFFS_MAJOR=2;
|
||||
const int SPIFFS_MINOR=17;
|
||||
|
|
|
|||
Loading…
Reference in New Issue