4cca455c9b
On NRF, the `rtc_reset()` function is never called. As a result, calls to `time.time()` return a cryptic error> ``` >>> import time >>> time.time() '' object has no attribute 'datetime' >>> ``` This is because `MP_STATE_VM(rtc_time_source)` is not initialized due to `rtc_reset()` never being called. If `CIRCUITPY_RTC` is enabled, call `rtc_reset()` as part of the `reset_port()` call. This ensures that `time.time()` works as expected. Signed-off-by: Sean Cross <sean@xobs.io> |
||
---|---|---|
.. | ||
atmel-samd | ||
cxd56 | ||
litex | ||
mimxrt10xx | ||
nrf | ||
stm | ||
unix |