Skip to content

Commit

Permalink
fix ip show not complete when ip is the max length
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVon2021 committed May 22, 2023
1 parent 0c7312a commit e3ff310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/package.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "Develop-1.1.1", "version_int": 111, "md5value": "ecbba91e1976765b490e7d54194199fb", "oled_type": 0}
{"version": "Develop-1.1.2", "version_int": 112, "md5value": "b15274a5e48792b1103643b9f0d63724", "oled_type": 0}
5 changes: 2 additions & 3 deletions third_lib/ssd1306/examples/OLED_0in91_test.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ int OLED_0in91_test(void)
GetIP(ip);
char ip_str[128]={0};
sprintf(ip_str,"IP:%s",ip);
Paint_DrawString_EN(10, 0, ip_str, &Font12, WHITE, WHITE);

Paint_DrawString_EN(0, 0, ip_str, &Font12, WHITE, WHITE);
// TEMP
char temp[20]={0};
sprintf(temp, "temp:%2dF/%2dC",(int)(GetCPUTemp()*1.8 + 32),GetCPUTemp());
Paint_DrawString_EN(10, 16, temp, &Font12, WHITE, WHITE);
Paint_DrawString_EN(0, 16, temp, &Font12, WHITE, WHITE);
}
else
{
Expand Down

0 comments on commit e3ff310

Please sign in to comment.