HOTFIX: removed horrible bug with buffer overrung *sigh*
This commit is contained in:
parent
15352ddfcd
commit
bf9d8dafb6
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user