HOTFIX: removed horrible bug with buffer overrung *sigh*

This commit is contained in:
Robin Dietzel 2023-02-03 12:19:45 +01:00
parent 15352ddfcd
commit bf9d8dafb6

View File

@ -231,7 +231,8 @@ int main(void) {
{
dly_disp = HAL_GetTick();
display.LCDSetBacklight(S_backlight);
char buf[20];
//Increase to 21 -> crucial bug! usually never use sprintf! TODO: find another option instead!!!!
char buf[21];
display.LCDSetCursor(0, 0);
sprintf(buf, "Fuellstand %3d %%", tankLevel0.getPercent());