Use LCD_WIDTH for indexed string (#15979)

This commit is contained in:
Robby Candra 2019-11-25 08:06:23 +07:00 committed by Scott Lahteine
parent 2142beb2e5
commit 55595d444d

View File

@ -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);
}