From 5f90414724978103a5843d8f202a88b3ab0fbeee Mon Sep 17 00:00:00 2001 From: Andreas Neuhaus Date: Mon, 23 Sep 2024 20:53:52 +0200 Subject: [PATCH] Indicate debug version in splash screen --- firmware/src/screen.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/src/screen.rs b/firmware/src/screen.rs index 20a7e1e..d60eecc 100644 --- a/firmware/src/screen.rs +++ b/firmware/src/screen.rs @@ -85,7 +85,10 @@ impl Screen for Splash { FontColor::Transparent(BinaryColor::On), target, )?; + #[cfg(not(debug_assertions))] Footer::new("", GIT_SHA_STR).draw(target)?; + #[cfg(debug_assertions)] + Footer::new("(DEBUG)", GIT_SHA_STR).draw(target)?; Ok(()) } }