Skip to content

Commit

Permalink
visca: Fix power state not getting updated
Browse files Browse the repository at this point in the history
The visca driver wasn't querying the camera when the power state
changed. This resulted in not being able to turn the camera back on
after turning it off. Fix this by adding "power_on" to the stale
properties list when changing the power state.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
glikely committed Mar 2, 2023
1 parent 0739b7a commit 585efea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ptz-visca.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ const PTZInq
{new int_field("color_hue", 2, 0b1111)});

const PTZCmd VISCA_CommandCancel("8120ff", {new visca_u4("socket", 1)});
const PTZCmd VISCA_CAM_Power("8101040000ff", {new visca_flag("power_on", 4)});
const PTZCmd VISCA_CAM_Power("8101040000ff", {new visca_flag("power_on", 4)},
"power_on");
const PTZInq VISCA_CAM_PowerInq("81090400ff", {new visca_flag("power_on", 2)});

const PTZCmd VISCA_CAM_Zoom_Stop("8101040700ff", "zoom_pos");
Expand Down

0 comments on commit 585efea

Please sign in to comment.