Use LCD_WIDTH for indexed string (#15979)

2.0.x
Robby Candra 5 years ago committed by Scott Lahteine
parent 2142beb2e5
commit 55595d444d

@ -10,7 +10,7 @@
#include "fontutils.h"
#include "../inc/MarlinConfigPre.h"
#include "../inc/MarlinConfig.h"
#if HAS_GRAPHICAL_LCD
#include "dogm/u8g_fontutf8.h"
@ -71,8 +71,8 @@ inline int lcd_put_u8str_P(const lcd_uint_t col, const lcd_uint_t row, PGM_P con
return lcd_put_u8str_P(pstr);
}
lcd_uint_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const lcd_uint_t maxlen=20);
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) {
lcd_uint_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const lcd_uint_t maxlen=LCD_WIDTH);
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) {
lcd_moveto(col, row);
return lcd_put_u8str_ind_P(pstr, ind, maxlen);
}

Loading…
Cancel
Save