Skip to content

Commit

Permalink
Indicate debug version in splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Sep 23, 2024
1 parent 6440ba7 commit 5f90414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/src/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand Down

0 comments on commit 5f90414

Please sign in to comment.