Skip to content

Commit e0e3224

Browse files
committed
forgot a check for BOARD_HAS_CRYSTAL
1 parent 6413e49 commit e0e3224

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,12 @@ static void frequencyin_samd51_stop_dpll(void) {
263263
dpll_gclk = 0xff;
264264
}
265265

266+
#if !BOARD_HAS_CRYSTAL
266267
if (osculp32k_gclk != 0xff) {
267268
disable_clock_generator(osculp32k_gclk);
268269
osculp32k_gclk = 0xff;
269270
}
271+
#endif
270272

271273
GCLK->PCHCTRL[OSCCTRL_GCLK_ID_FDPLL1].reg = 0;
272274
OSCCTRL->Dpll[1].DPLLCTRLA.reg = 0;

0 commit comments

Comments
 (0)