From b22525f9d95b5bbb8d2fc69e5689f3edfe321a24 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sun, 11 Feb 2024 05:34:07 +0100 Subject: [PATCH] Add Bonjour --- ui/welcome.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ui/welcome.c b/ui/welcome.c index c2d7401..5ce2e33 100644 --- a/ui/welcome.c +++ b/ui/welcome.c @@ -30,6 +30,9 @@ void UI_DisplayReleaseKeys(void) { memset(gStatusLine, 0, sizeof(gStatusLine)); +#ifdef ENABLE_FEAT_F4HWN + ST7565_ContrastAndInv(); +#endif UI_DisplayClear(); UI_PrintString("RELEASE", 0, 127, 1, 10); @@ -45,6 +48,10 @@ void UI_DisplayWelcome(void) char WelcomeString1[16]; memset(gStatusLine, 0, sizeof(gStatusLine)); + +#ifdef ENABLE_FEAT_F4HWN + ST7565_ContrastAndInv(); +#endif UI_DisplayClear(); if (gEeprom.POWER_ON_DISPLAY_MODE == POWER_ON_DISPLAY_MODE_NONE || gEeprom.POWER_ON_DISPLAY_MODE == POWER_ON_DISPLAY_MODE_FULL_SCREEN) { @@ -71,7 +78,12 @@ void UI_DisplayWelcome(void) UI_PrintString(WelcomeString1, 0, 127, 2, 10); #ifdef ENABLE_FEAT_F4HWN - ST7565_ContrastAndInv(); + if(strlen(WelcomeString1) == 0) { + UI_PrintString("BONJOUR", 0, 127, 2, 10); + } +#endif + +#ifdef ENABLE_FEAT_F4HWN UI_PrintStringSmallNormal(Credits, 0, 128, 5); UI_PrintStringSmallNormal(Feat, 0, 128, 6); #else