mirror of
https://github.com/correl/digitalaudioswitch.git
synced 2024-12-04 11:04:43 +00:00
Only display muted status when actually muted
This commit is contained in:
parent
7fe2b4f881
commit
181363a52d
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -262,7 +262,7 @@ def loop():
|
|||
oled.text("R", 0, 10)
|
||||
oled.text(f"{state['volume']['left']:3d}", 104, 0)
|
||||
oled.text(f"{state['volume']['right']:3d}", 104, 10)
|
||||
if state["volume"]["muted"]:
|
||||
if state["volume"]["muted"] == "ON":
|
||||
oled.framebuf.rect(40, 4, 4 * 8 + 2, 10, 0, True)
|
||||
oled.framebuf.rect(39, 3, 4 * 8 + 4, 12, 1)
|
||||
oled.framebuf.rect(38, 2, 4 * 8 + 6, 14, 0)
|
||||
|
|
Loading…
Reference in a new issue