Fix Waveshare V2 Position

The current location "178, 84" does not correctly display the temperature symbol (Cellsius, Kelvin, etc.). I fix the code whit the correct position.

Signed-off-by: Andrea Draghetti <drego85@draghetti.it>
This commit is contained in:
Andrea Draghetti
2024-03-29 08:57:45 +01:00
committed by GitHub
parent 33ff5a0bf8
commit a3f103ac06

View File

@ -130,7 +130,7 @@ class MemTemp(plugins.Plugin):
except Exception: except Exception:
# Set default position based on screen type # Set default position based on screen type
if ui.is_waveshare_v2(): if ui.is_waveshare_v2():
h_pos = (178, 84) h_pos = (175, 84)
v_pos = (197, 74) v_pos = (197, 74)
elif ui.is_waveshare_v1(): elif ui.is_waveshare_v1():
h_pos = (170, 80) h_pos = (170, 80)