We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38f181c commit 21446e5Copy full SHA for 21446e5
1 file changed
src/main.c
@@ -118,7 +118,7 @@ int main(void) {
118
LCD_disp_str((uint8_t*)buf, len, 0, 64 - 6, FONT6X6);
119
printf("\nRunning on an %s", buf);
120
121
- len = snprintf(buf, sizeof(buf), "%s", Version_GetGitVersion());
+ len = snprintf(buf, 21, "%s", Version_GetGitVersion());
122
LCD_disp_str((uint8_t*)buf, len, 128 - (len * 6), 0, FONT6X6);
123
124
LCD_FB_Update();
@@ -348,7 +348,7 @@ static int32_t Main_Work(void) {
348
len = snprintf(buf, sizeof(buf), "T-962 controller");
349
LCD_disp_str((uint8_t*)buf, len, LCD_ALIGN_CENTER(len), 0, FONT6X6);
350
351
352
LCD_disp_str((uint8_t*)buf, len, LCD_ALIGN_CENTER(len), 64 - 6, FONT6X6);
353
354
LCD_BMPDisplay(stopbmp, 127 - 17, 0);
0 commit comments