rtc.init() is not working on v1.20.2.r2
-
Re: Firmware Release v1.20.2.r2
rtc.init is no longer working in following build:
Pycom MicroPython 1.20.2.r2 [v1.11-3a7776d] on 2020-11-23; GPy with ESP32
rtc = RTC()
rtc.init((2017, 2, 28, 10, 30, 0, 0, 0))
rtc.now()
(1970, 1, 1, 0, 30, 25, 65284, None) -
@Jean-Ferreira said in rtc.init() is not working on v1.20.2.r2:
Re: Firmware Release v1.20.2.r2
rtc.init is no longer working in following build:
Pycom MicroPython 1.20.2.r2 [v1.11-3a7776d] on 2020-11-23; GPy with ESP32
rtc = RTC()
rtc.init((2017, 2, 28, 10, 30, 0, 0, 0))
rtc.now()
(1970, 1, 1, 0, 30, 25, 65284, None)same problem for wipy 3 !
-
Hi,
We are aware of the issue, once a solution is available, I will let you know!
Note, there seems to be some sort of workaround: https://forum.pycom.io/topic/6616/rtc-utime-issues-in-1-20-2-r2/4
Gijs -
@Gijs using rtc.ntp_sync() you'll get the proper time. After that, rtc.init() seems to be ignored.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login