LCD filename already concatentated
This commit is contained in:
parent
53f2f188f2
commit
a21201a713
@ -987,7 +987,6 @@ static void lcd_implementation_status_screen() {
|
|||||||
|
|
||||||
static void lcd_implementation_drawmenu_sd(const bool sel, const uint8_t row, const char* const pstr, const char* filename, char* const longFilename, const uint8_t concat, const char post_char) {
|
static void lcd_implementation_drawmenu_sd(const bool sel, const uint8_t row, const char* const pstr, const char* filename, char* const longFilename, const uint8_t concat, const char post_char) {
|
||||||
UNUSED(pstr);
|
UNUSED(pstr);
|
||||||
char c;
|
|
||||||
uint8_t n = LCD_WIDTH - concat;
|
uint8_t n = LCD_WIDTH - concat;
|
||||||
lcd.setCursor(0, row);
|
lcd.setCursor(0, row);
|
||||||
lcd.print(sel ? '>' : ' ');
|
lcd.print(sel ? '>' : ' ');
|
||||||
@ -995,7 +994,7 @@ static void lcd_implementation_status_screen() {
|
|||||||
filename = longFilename;
|
filename = longFilename;
|
||||||
longFilename[n] = '\0';
|
longFilename[n] = '\0';
|
||||||
}
|
}
|
||||||
while ((c = *filename) && n > 0) {
|
while (char c = *filename) {
|
||||||
n -= charset_mapper(c);
|
n -= charset_mapper(c);
|
||||||
filename++;
|
filename++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user