We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0dd22 commit b82d3aeCopy full SHA for b82d3ae
samples/bluetooth/conn_time_sync/src/controller_time_nrf54.c
@@ -31,16 +31,7 @@ int controller_time_init(void)
31
32
uint64_t controller_time_us_get(void)
33
{
34
- int ret;
35
- uint64_t current_time_us;
36
-
37
- ret = nrfx_grtc_syscounter_get(¤t_time_us);
38
- if (ret != NRFX_SUCCESS) {
39
- printk("Failed obtaining system time (ret: %d)\n", ret - NRFX_ERROR_BASE_NUM);
40
- return 0;
41
- }
42
43
- return current_time_us;
+ return nrfx_grtc_syscounter_get();
44
}
45
46
void controller_time_trigger_set(uint64_t timestamp_us)
0 commit comments