Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4988

SDK • RTC doesn't run without calling rtc_set_datetime()

$
0
0
I've found what I think is a problem. Well, it was for me.

I was using code from pico-examples/rtc/hello_rtc/hello_rtc.c with another project and found that if I didn't call rtc_set_datetime() the RTC doesn't advance at all, even though printing it to serial will print a valid datetime.

Shouldn't the RTC work whether I set the datetime or not? Shouldn't rtc_init() start it?

Statistics: Posted by Mike**K — Tue Dec 10, 2024 7:22 pm



Viewing all articles
Browse latest Browse all 4988

Trending Articles