logf: Fix an incorrect fix in 835d0c737a

Change-Id: I060033d9a7cd54bab75e4f82e3de002bdb027af2
This commit is contained in:
Solomon Peachy 2021-08-15 09:03:16 -04:00
parent eafdba87f8
commit cc6b036ef5

View file

@ -304,7 +304,7 @@ void logf_panic_dump(int *y)
}
if(strlen( &logfbuffer[i + 1]) > 0)
{
lcd_putsf(1, (*y)++, "%*s", &logfbuffer[i + 1]);
lcd_putsf(1, (*y)++, "%*s", (MAX_LOGF_SIZE-i), &logfbuffer[i + 1]);
lcd_update();
}
}