update version, fix bug / validate flash fw
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user