update version, fix bug / validate flash fw

This commit is contained in:
2026-03-08 20:53:26 +07:00
parent 1c1fbb7f92
commit ec78c984ad
5 changed files with 31 additions and 13 deletions

View File

@@ -34,3 +34,11 @@ def get_machine_info():
"os": os_info,
"mac": mac_addr,
}
def get_version():
"""Read version from version.txt"""
try:
with open(resource_path('version.txt'), 'r', encoding='utf-8') as f:
return f.read().strip()
except Exception:
return "Unknown"