diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-19 03:39:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-03-29 00:04:48 +0200 |
commit | e8145b9fa4bb3a119923125a08d98633012c1c99 (patch) | |
tree | 667bbaaaead186dcfeaf66deba5125e533be1872 /tracker-trackhat | |
parent | 0cf87749cecd6e225b1a96e1993b234cfa59033b (diff) |
tracker/trackhat: fix build
Diffstat (limited to 'tracker-trackhat')
-rw-r--r-- | tracker-trackhat/settings.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tracker-trackhat/settings.cpp b/tracker-trackhat/settings.cpp index 78fead3e..a5998fdc 100644 --- a/tracker-trackhat/settings.cpp +++ b/tracker-trackhat/settings.cpp @@ -94,6 +94,8 @@ start: goto error; } + return true; + retry: if (attempts++ < max_attempts) { @@ -135,7 +137,7 @@ bool trackhat_camera::init_regs() Timer t; - if (!set_regs(regs)) + if (!set_regs(regs, std::size(regs))) { device.disconnect(); return false; |