Skip to content

Commit 8feee87

Browse files
committed
Sipeed_GD32V_LCD: examples/image_display: fix warnings, use printf
1 parent 677e963 commit 8feee87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/Sipeed_GD32V_LCD/examples/image_display/image_display.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ static uint8_t lcdBuffer[LCD_W*LCD_BUF_H*2];
2424
bool sdMounted = false;
2525

2626

27-
void DrawImageFromFile(char* path)
27+
void DrawImageFromFile(const char* path)
2828
{
29-
int offset = 0;
29+
uint32_t offset = 0;
3030
uint16_t top = 0;
3131
uint32_t dataSize = 0;
3232
File dataFile;
@@ -79,7 +79,7 @@ void DrawImageFromFile(char* path)
7979
lcd.setTextSize(2);
8080
lcd.setTextColor(COLOR_RED);
8181
lcd.setCursor(0,32);
82-
lcd.print("File "); lcd.print(path); lcd.println(" not found.");
82+
lcd.printf("File %s not found.", path);
8383
}
8484
}
8585

0 commit comments

Comments
 (0)