Some Fixes. Reset problem
This commit is contained in:
1 parent
75587ddae2
commit
aa3e3d6c35
1 file changed
+7
-1
@@ -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__":
|
||||
|
||||
Reference in new issue
Block a user