diff --git a/cpu/cc26x2_cc13x2/osc.c b/cpu/cc26x2_cc13x2/osc.c index dd9378b748..7e79275220 100644 --- a/cpu/cc26x2_cc13x2/osc.c +++ b/cpu/cc26x2_cc13x2/osc.c @@ -54,7 +54,7 @@ void osc_hf_source_switch(uint32_t osc) _hf_source_set(osc); /* Wait for the oscillator to be ready */ - while (_hf_source_ready()) {} + while (!_hf_source_ready()) {} /* If target clock source is RCOSC, change clock source for DCDC to RCOSC */ if (osc == OSC_RCOSC_HF) {