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

Alexandre Abadie notifications at github.com
Tue Nov 3 16:47:01 CET 2020


@aabadie commented on this pull request.



> +void init_ranging(void *arg)
+{
+    (void) arg;
+
+    struct uwb_dev *udev = uwb_dev_idx_lookup(0);
+    struct uwb_rng_instance *rng =
+        (struct uwb_rng_instance *)uwb_mac_find_cb_inst_ptr(udev, UWBEXT_RNG);
+
+    assert(rng);
+
+    /* set up local mac callbacks */
+    _uwb_mac_cbs.inst_ptr = rng;
+    uwb_mac_append_interface(udev, &_uwb_mac_cbs);
+
+    uint32_t utime = xtimer_now_usec();
+    (void)utime;

Ah wait, utime is not used if log level is > debug. What about:
```suggestion
    if (LOG_LEVEL > LOG_DEBUG) {
        (void)utime;
    }
```
? (untested)

-- 
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#discussion_r516766741
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201103/edc48f83/attachment.htm>


More information about the notifications mailing list