diff options
| author | Nick Moore <nick@zoic.org> | 2019-02-12 13:36:24 +1100 |
|---|---|---|
| committer | Nick Moore <nick@zoic.org> | 2019-04-02 13:28:03 +1100 |
| commit | 6afe23d0b0e42f7bb1dd050015689f6500df644a (patch) | |
| tree | a1554632cab94adfb0d38c205f56d4b453e53e6e | |
| parent | 6206fa9a827af96976c5c8d4239502cc13262f11 (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; -} |
