···882882 * read packets with a noop function for 50ms.
883883 */
884884885885- uint64_t then_ns = os_monotonic_get_ns();
886886- uint64_t future_50ms_ns = then_ns + U_TIME_1MS_IN_NS * (uint64_t)50;
885885+ int64_t then_ns = os_monotonic_get_ns();
886886+ int64_t future_50ms_ns = then_ns + U_TIME_1MS_IN_NS * (int64_t)50;
887887888888 while (future_50ms_ns > os_monotonic_get_ns() && os_thread_helper_is_running(&d->sensors_thread)) {
889889 // Lock not held.
+2-2
src/xrt/drivers/wmr/wmr_controller_base.c
···125125 // comms timeout. Replies are usually in 10ms or so but the first can take longer
126126 const int timeout_ms = 250;
127127 const int timeout_ns = timeout_ms * U_TIME_1MS_IN_NS;
128128- uint64_t timeout_start = os_monotonic_get_ns();
129129- uint64_t timeout_end_ns = timeout_start + timeout_ns;
128128+ int64_t timeout_start = os_monotonic_get_ns();
129129+ int64_t timeout_end_ns = timeout_start + timeout_ns;
130130131131 if (!wmr_controller_send_bytes(wcb, fw_cmd->buf, sizeof(fw_cmd->buf))) {
132132 return -1;