|
@@ -2469,10 +2469,10 @@ void lcd_init() {
|
2469
|
2469
|
int lcd_strlen(const char* s) {
|
2470
|
2470
|
int i = 0, j = 0;
|
2471
|
2471
|
while (s[i]) {
|
2472
|
|
- #ifdef MAPPER_NON
|
|
2472
|
+ #if ENABLED(MAPPER_NON)
|
2473
|
2473
|
j++;
|
2474
|
2474
|
#else
|
2475
|
|
- if ((s[i] & 0xc0) != 0x80) j++;
|
|
2475
|
+ if ((s[i] & 0xC0u) != 0x80u) j++;
|
2476
|
2476
|
#endif
|
2477
|
2477
|
i++;
|
2478
|
2478
|
}
|
|
@@ -2482,10 +2482,10 @@ int lcd_strlen(const char* s) {
|
2482
|
2482
|
int lcd_strlen_P(const char* s) {
|
2483
|
2483
|
int j = 0;
|
2484
|
2484
|
while (pgm_read_byte(s)) {
|
2485
|
|
- #ifdef MAPPER_NON
|
|
2485
|
+ #if ENABLED(MAPPER_NON)
|
2486
|
2486
|
j++;
|
2487
|
2487
|
#else
|
2488
|
|
- if ((pgm_read_byte(s) & 0xc0) != 0x80) j++;
|
|
2488
|
+ if ((pgm_read_byte(s) & 0xC0u) != 0x80u) j++;
|
2489
|
2489
|
#endif
|
2490
|
2490
|
s++;
|
2491
|
2491
|
}
|