Use lcd_uint_t in lcd_put_u8str_ind_P (#15909)

This commit is contained in:
Robby Candra 2019-11-17 05:37:21 +07:00 committed by Scott Lahteine
parent d33ca3d058
commit 40bbe58371
2 changed files with 4 additions and 4 deletions

View file

@ -35,9 +35,9 @@
* lcd_put_u8str_ind_P
* Print a string with an index substituted within it
*/
uint8_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const uint8_t maxlen/*=LCD_WIDTH*/) {
lcd_uint_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const lcd_uint_t maxlen/*=LCD_WIDTH*/) {
uint8_t *p = (uint8_t*)pstr;
uint8_t n = maxlen;
lcd_uint_t n = maxlen;
for (; n; n--) {
wchar_t ch;
p = get_utf8_value_cb(p, read_byte_rom, &ch);

View file

@ -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);
}
uint8_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const uint8_t maxlen=20);
inline uint8_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 uint8_t maxlen=20) {
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_moveto(col, row);
return lcd_put_u8str_ind_P(pstr, ind, maxlen);
}