diff options
Diffstat (limited to 'tracker-trackhat/camera.cpp')
-rw-r--r-- | tracker-trackhat/camera.cpp | 10 |
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; |