We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f3f420 commit 355aea5Copy full SHA for 355aea5
1 file changed
src/rp2_common/hardware_rtc/rtc.c
@@ -194,7 +194,7 @@ bool rtc_run_from_external_source(uint32_t src_hz, uint gpio_pin) {
194
if (success) {
195
// Ensure external source is actually running
196
uint32_t rtc_freq = frequency_count_khz(CLOCKS_FC0_SRC_VALUE_CLK_RTC);
197
- if (rtc_freq < ((RTC_CLOCK_FREQ_HZ / KHZ) - 1) || rtc_freq > ((RTC_CLOCK_FREQ_HZ / KHZ) + 1)) {
+ if (rtc_freq < ((RTC_CLOCK_FREQ_HZ / KHZ) - 5) || rtc_freq > ((RTC_CLOCK_FREQ_HZ / KHZ) + 5)) {
198
// Frequency is not within 1kHz of the expected frequency
199
success = false;
200
// reconfigure the clock to the default configuration
0 commit comments