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 <me@jeandudey.tech>
This commit is contained in:
parent
becca71caf
commit
ca126593e9
@ -54,7 +54,7 @@ void osc_hf_source_switch(uint32_t osc)
|
|||||||
_hf_source_set(osc);
|
_hf_source_set(osc);
|
||||||
|
|
||||||
/* Wait for the oscillator to be ready */
|
/* 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 target clock source is RCOSC, change clock source for DCDC to RCOSC */
|
||||||
if (osc == OSC_RCOSC_HF) {
|
if (osc == OSC_RCOSC_HF) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user