gps related minor fixes

This commit is contained in:
Mikkeli Matlock
2026-02-09 17:48:38 +09:00
parent 47b3427e63
commit a46496d688
4 changed files with 16 additions and 2 deletions

View File

@@ -139,6 +139,10 @@ def on_arduino_data(data):
# Always include current GPIO state (UI dedupes)
data = dict(data) # Don't mutate original
data["theme_switch"] = gpio.theme_switch
# backend voltage offset correction
if "voltage" in data:
data["voltage"] += 0.2 # Calibration offset
def emit_fn(d):
socketio.emit("arduino", d)