Skip to content

Commit df0883a

Browse files
committed
Ensure a clock resus on external clock configuration correctly
resets the clock status.
1 parent ae47bf4 commit df0883a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prawnblaster/prawnblaster.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,9 @@ void loop()
10021002
}
10031003
else
10041004
{
1005-
clock_configure_gpin(clk_sys, (src == 2 ? 22 : 20), freq, freq);
1006-
// update clock status
1005+
// update clock status first so resus can correct if config fails
10071006
clock_status = EXTERNAL;
1007+
clock_configure_gpin(clk_sys, (src == 2 ? 22 : 20), freq, freq);
10081008
fast_serial_printf("ok\r\n");
10091009
}
10101010
}

0 commit comments

Comments
 (0)