From ca126593e979a7b045eb0da3d40235c4b862ef62 Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Mon, 12 Oct 2020 14:41:16 -0500 Subject: [PATCH] cpu/cc26x2_cc13x2: fix boolean logic for osc change Small typo on the loop that checks that the oscillator is ready to be changed. Signed-off-by: Jean Pierre Dudey --- cpu/cc26x2_cc13x2/osc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {