diff options
| author | Nick Moore <nick@zoic.org> | 2019-02-12 13:36:24 +1100 |
|---|---|---|
| committer | Nick Moore <nick@zoic.org> | 2019-03-28 09:50:09 +1100 |
| commit | 71622a45155f8082d56e379c9f3e5b3e4645c09e (patch) | |
| tree | 3be1d0b0374efa59e52073925f505dc1681e0b7b | |
| parent | 28254def0bf10ecb2690a9eb3af6efe4e515eea6 (diff) | |
There isn't really a good way to calibrate this RTC adafruit/circuitpython#1046
| -rw-r--r-- | ports/nrf/common-hal/rtc/RTC.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ports/nrf/common-hal/rtc/RTC.c b/ports/nrf/common-hal/rtc/RTC.c index d62815b5a..d807d7b03 100644 --- a/ports/nrf/common-hal/rtc/RTC.c +++ b/ports/nrf/common-hal/rtc/RTC.c @@ -42,7 +42,6 @@ #define RTC_CLOCK_HZ (8) volatile static uint32_t rtc_offset = 0; -int8_t rtc_calibration = 0; const nrfx_rtc_t rtc_instance = NRFX_RTC_INSTANCE(0); @@ -80,14 +79,3 @@ void common_hal_rtc_set_time(timeutils_struct_time_t *tm) { ); nrfx_rtc_counter_clear(&rtc_instance); } - -// A positive value speeds up the clock by removing clock cycles. -int common_hal_rtc_get_calibration(void) { - return rtc_calibration; -} - -void common_hal_rtc_set_calibration(int calibration) { - if (calibration > 127 || calibration < -127) - mp_raise_ValueError(translate("calibration value out of range +/-127")); - rtc_calibration = calibration; -} |
