Browse Source

Use LCD_WIDTH for indexed string (#15979)

Robby Candra 4 years ago
parent
commit
55595d444d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/lcd/lcdprint.h

+ 3
- 3
Marlin/src/lcd/lcdprint.h View File

10
 
10
 
11
 #include "fontutils.h"
11
 #include "fontutils.h"
12
 
12
 
13
-#include "../inc/MarlinConfigPre.h"
13
+#include "../inc/MarlinConfig.h"
14
 
14
 
15
 #if HAS_GRAPHICAL_LCD
15
 #if HAS_GRAPHICAL_LCD
16
   #include "dogm/u8g_fontutf8.h"
16
   #include "dogm/u8g_fontutf8.h"
71
   return lcd_put_u8str_P(pstr);
71
   return lcd_put_u8str_P(pstr);
72
 }
72
 }
73
 
73
 
74
-lcd_uint_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const lcd_uint_t maxlen=20);
75
-inline lcd_uint_t lcd_put_u8str_ind_P(const lcd_uint_t col, const lcd_uint_t row, PGM_P const pstr, const uint8_t ind, const lcd_uint_t maxlen=20) {
74
+lcd_uint_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const lcd_uint_t maxlen=LCD_WIDTH);
75
+inline lcd_uint_t lcd_put_u8str_ind_P(const lcd_uint_t col, const lcd_uint_t row, PGM_P const pstr, const uint8_t ind, const lcd_uint_t maxlen=LCD_WIDTH) {
76
   lcd_moveto(col, row);
76
   lcd_moveto(col, row);
77
   return lcd_put_u8str_ind_P(pstr, ind, maxlen);
77
   return lcd_put_u8str_ind_P(pstr, ind, maxlen);
78
 }
78
 }

Loading…
Cancel
Save