Skip to content

Commit

Permalink
info.py: adjustments to version code for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdr committed Jan 8, 2025
1 parent d21ca73 commit 46bd0cb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions badger_os/examples/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
TEXT_SIZE = 1
LINE_HEIGHT = 15

version = version.BUILD.split('-')
for word in version:
if word.startswith("v"):
version = word
break
version = version.BUILD.split('-')[2]

display = badger2040.Badger2040()
display.led(128)
Expand Down Expand Up @@ -41,7 +37,7 @@
y += LINE_HEIGHT
display.text("https://pimoroni.com/badger2040", 5, y, WIDTH, TEXT_SIZE)
y += LINE_HEIGHT
display.text(f"Badger OS {version[2]}", 5, y, WIDTH, TEXT_SIZE)
display.text(f"Badger OS {version}", 5, y, WIDTH, TEXT_SIZE)

display.update()

Expand Down

0 comments on commit 46bd0cb

Please sign in to comment.