Skip to content

Commit

Permalink
Round sats price to one decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed May 3, 2022
1 parent 7444f23 commit 01af775
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion displays/inkyphat.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def update_amount_screen():
draw.text(
(60, 60),
messages.amount_screen_3
+ str(round(config.SATPRICE, 2))
+ "%.1f" % round(config.SATPRICE, 1)
+ messages.amount_screen_4
+ config.conf["atm"]["centname"],
fill=config.BLACK,
Expand Down
2 changes: 1 addition & 1 deletion displays/papiruszero2in.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def update_amount_screen():
draw.text(
(60, 60),
messages.amount_screen_3
+ str(round(config.SATPRICE, 2))
+ "%.1f" % round(config.SATPRICE, 1)
+ messages.amount_screen_4
+ config.conf["atm"]["centname"],
fill=config.BLACK,
Expand Down
2 changes: 1 addition & 1 deletion displays/waveshare2in13d.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def update_amount_screen():
draw.text(
(60, 65),
messages.amount_screen_3
+ str(round(config.SATPRICE, 2))
+ "%.1f" % round(config.SATPRICE, 1)
+ messages.amount_screen_4
+ config.conf["atm"]["centname"],
fill=config.BLACK,
Expand Down
2 changes: 1 addition & 1 deletion displays/waveshare2in13v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def update_amount_screen():
draw.text(
(60, 70),
messages.amount_screen_3
+ str(round(config.SATPRICE, 2))
+ "%.1f" % round(config.SATPRICE, 1)
+ messages.amount_screen_4
+ config.conf["atm"]["centname"],
fill=config.BLACK,
Expand Down
2 changes: 1 addition & 1 deletion displays/waveshare2in66.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def update_amount_screen():
draw.text(
(80, 104),
messages.amount_screen_3
+ str(round(config.SATPRICE, 2))
+ "%.1f" % round(config.SATPRICE, 1)
+ messages.amount_screen_4
+ config.conf["atm"]["centname"],
fill=config.BLACK,
Expand Down
2 changes: 1 addition & 1 deletion displays/waveshare2in7.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def update_amount_screen():
draw.text(
(60, 70),
messages.amount_screen_3
+ str(round(config.SATPRICE, 2))
+ "%.1f" % round(config.SATPRICE, 1)
+ messages.amount_screen_4
+ config.conf["atm"]["centname"],
fill=config.BLACK,
Expand Down

0 comments on commit 01af775

Please sign in to comment.