summaryrefslogtreecommitdiffhomepage
path: root/tracker-trackhat/camera.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-03-28 22:49:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-03-29 00:04:50 +0200
commit6173590161f8ca4d84c030820c9f47e1f6a52561 (patch)
tree6ac62faaedfadfd8e1cfcad32ae589fd347000bf /tracker-trackhat/camera.cpp
parent13dc777d25b3697070b54c77d5e76f2b6082914b (diff)
tracker/trackhat: fix settings not propagating to tracker
Diffstat (limited to 'tracker-trackhat/camera.cpp')
-rw-r--r--tracker-trackhat/camera.cpp10
1 files changed, 4 insertions, 6 deletions
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;