summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-05-05 21:14:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-05-10 05:01:33 +0200
commit541edb05ba4db00833e45a744cfdc839ece247c7 (patch)
tree3e643b7142f96b96c84ffac19b85098a0aeb5da3
parentfd32656d951d2460f73f21d0b018d31da418ced8 (diff)
tracker/trackhat: adapt to library changes
-rw-r--r--tracker-trackhat/settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-trackhat/settings.cpp b/tracker-trackhat/settings.cpp
index eeec97ee..44bb065b 100644
--- a/tracker-trackhat/settings.cpp
+++ b/tracker-trackhat/settings.cpp
@@ -120,7 +120,7 @@ bool trackhat_camera::init_regs()
for (i = 0; i < max; i++)
{
TH_ErrorCode status = TH_SUCCESS;
-#if 1
+#if 0
for (trackHat_SetRegister_t& reg : regs.setRegisterGroupValue)
{
status = th_check(trackHat_SetRegisterValue(&*device, &reg));
@@ -133,7 +133,7 @@ bool trackhat_camera::init_regs()
if (status == TH_SUCCESS)
break;
else if (status != TH_FAILED_TO_SET_REGISTER &&
- status != TH_ERROR_DEVICE_COMUNICATION_TIMEOUT)
+ status != TH_ERROR_DEVICE_COMMUNICATION_TIMEOUT)
return false;
else
{