Skip to content

Commit

Permalink
ptz: Fix wrongly sending recall command continuously
Browse files Browse the repository at this point in the history
Using "VISCA over TCP" and the recall is enabled, the recall command was
continuously sent once a recall is requested.
  • Loading branch information
norihiro committed Jul 12, 2024
1 parent ca313ec commit de7dfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libvisca-thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void libvisca_thread::thread_loop()
ptz_changed = true;
}

if (os_atomic_load_bool(&preset_changed)) {
if (os_atomic_set_bool(&preset_changed, false)) {
os_sleep_ms(48);
VISCA_memory_recall(iface, camera, preset_rsvd);
os_sleep_ms(48);
Expand Down

0 comments on commit de7dfd2

Please sign in to comment.