feat(x4): add per-camera manual wake and hide power action when connected
This commit is contained in:
@@ -35,6 +35,10 @@ class VideoHeader(ctypes.Structure):
|
||||
|
||||
def parameters(action, value):
|
||||
"""Validate before any SDK call; parameters never select a file or library."""
|
||||
if action == "power.wake":
|
||||
if not isinstance(value, dict) or value:
|
||||
raise ValueError("Wake uses the enrolled camera identity only")
|
||||
return 0, "", 0.0
|
||||
if action == "recovery.configure":
|
||||
if (
|
||||
not isinstance(value, dict)
|
||||
|
||||
Reference in New Issue
Block a user