Some Fixes. Reset problem

This commit is contained in:
proitlab committed 2026-08-03 16:00:26 +07:00
1 parent 75587ddae2
commit aa3e3d6c35
1 file changed
+7 -1
+7 -1
View File
@@ -580,7 +580,13 @@ def api_reset():
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Reset SHM error: {e}")
return jsonify({"success": False, "error": f"SHM reset failed: {e}"}), 500
return jsonify({"success": True, "message": "State + live frame cleared"})
reset_path = f"{SHM_DIR}/.reset"
return jsonify({
"success": True,
"message": "State + live frame cleared",
"shm_reset": reset_path,
"shm_exists": Path(reset_path).exists(),
})
if __name__ == "__main__":