custom LCD: fix garbled text in top row when using WATCH_POSITION_FULL
This commit is contained in:
parent
8269caf49b
commit
0185b56972
@ -205,6 +205,9 @@ void watch_display_text(watch_position_t location, const char *string) {
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
watch_display_string(string, 0);
|
watch_display_string(string, 0);
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#ifdef USE_CUSTOM_LCD
|
||||||
|
watch_display_character(' ', 10);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,14 +257,9 @@ void watch_display_text_with_fallback(watch_position_t location, const char *str
|
|||||||
case WATCH_POSITION_HOURS:
|
case WATCH_POSITION_HOURS:
|
||||||
case WATCH_POSITION_MINUTES:
|
case WATCH_POSITION_MINUTES:
|
||||||
case WATCH_POSITION_SECONDS:
|
case WATCH_POSITION_SECONDS:
|
||||||
|
case WATCH_POSITION_FULL:
|
||||||
watch_display_text(location, string);
|
watch_display_text(location, string);
|
||||||
break;
|
break;
|
||||||
case WATCH_POSITION_FULL:
|
|
||||||
// This is deprecated, but we use it for the legacy behavior.
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
||||||
watch_display_string(string, 0);
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
(void)string;
|
(void)string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user