Skip to content

Commit 6afe23d

Browse files
committed
There isn't really a good way to calibrate this RTC adafruit#1046
1 parent 6206fa9 commit 6afe23d

File tree

1 file changed

+0
-12
lines changed
  • ports/nrf/common-hal/rtc

1 file changed

+0
-12
lines changed

ports/nrf/common-hal/rtc/RTC.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#define RTC_CLOCK_HZ (8)
4343

4444
volatile static uint32_t rtc_offset = 0;
45-
int8_t rtc_calibration = 0;
4645

4746
const nrfx_rtc_t rtc_instance = NRFX_RTC_INSTANCE(0);
4847

@@ -80,14 +79,3 @@ void common_hal_rtc_set_time(timeutils_struct_time_t *tm) {
8079
);
8180
nrfx_rtc_counter_clear(&rtc_instance);
8281
}
83-
84-
// A positive value speeds up the clock by removing clock cycles.
85-
int common_hal_rtc_get_calibration(void) {
86-
return rtc_calibration;
87-
}
88-
89-
void common_hal_rtc_set_calibration(int calibration) {
90-
if (calibration > 127 || calibration < -127)
91-
mp_raise_ValueError(translate("calibration value out of range +/-127"));
92-
rtc_calibration = calibration;
93-
}

0 commit comments

Comments
 (0)