[2.0.x] UTF-8 language translation support (#10213)

This commit is contained in:
Yunhui Fu
2018-04-12 21:14:01 -04:00
committed by Scott Lahteine
parent daa712455b
commit c96412a78f
151 changed files with 565326 additions and 7193 deletions

View File

@ -4940,24 +4940,6 @@ void lcd_init() {
#endif
}
int16_t lcd_strlen(const char* s) {
int16_t i = 0, j = 0;
while (s[i]) {
if (PRINTABLE(s[i])) j++;
i++;
}
return j;
}
int16_t lcd_strlen_P(const char* s) {
int16_t j = 0;
while (pgm_read_byte(s)) {
if (PRINTABLE(pgm_read_byte(s))) j++;
s++;
}
return j;
}
bool lcd_blink() {
static uint8_t blink = 0;
static millis_t next_blink_ms = 0;