From 6173590161f8ca4d84c030820c9f47e1f6a52561 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 28 Mar 2022 22:49:31 +0200 Subject: tracker/trackhat: fix settings not propagating to tracker --- tracker-trackhat/camera.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tracker-trackhat/camera.cpp') diff --git a/tracker-trackhat/camera.cpp b/tracker-trackhat/camera.cpp index b645f3af..49e20e41 100644 --- a/tracker-trackhat/camera.cpp +++ b/tracker-trackhat/camera.cpp @@ -72,12 +72,10 @@ pt_camera::result trackhat_camera::get_frame(pt_frame& frame_) if (!device.ensure_connected()) goto error; - if (sig.test_and_clear()) - { - set_pt_options(); - if (!init_regs()) - goto error; - } + if (sig.test_and_clear() && !init_regs()) + goto error; + + set_pt_options(); { trackHat_ExtendedPoints_t points; -- cgit v1.2.3