mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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);
|
||||
|
||||
/* 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user