fix #342: remove bug in code for right-justified text on OLED display

This commit is contained in:
Hansi, dl9rdz 2023-01-04 12:15:27 +00:00
parent c63c31a1d4
commit e2569f4bd5
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;