[riot-notifications] [RIOT-OS/RIOT] pkg/uwb_core: initial support (#15070)

Alexandre Abadie notifications at github.com
Tue Nov 3 16:43:46 CET 2020


@aabadie commented on this pull request.



> +        mode = mode_v[last_used_mode];
+#ifdef UWB_TWR_ALGORITHM_ONLY_ONE
+        mode = UWB_TWR_ALGORITHM_ONLY_ONE;
+#endif
+        if (mode > 0) {
+            uwb_rng_request(rng, ANCHOR_ADDRESS, mode);
+        }
+    }
+
+    /* reset the callback if ranging is enabled */
+    if (_ranging_enabled_flag) {
+        dpl_callout_reset(&_rng_req_callout, RANGE_REQUEST_T_US);
+    }
+}
+
+void init_ranging(void *arg)

Since is not used and this function is declared in the application, you could get rid of it:
```suggestion
void init_ranging(void)
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15070#pullrequestreview-522627325
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201103/d811e568/attachment-0001.htm>


More information about the notifications mailing list