I have two PICO W machines and am using C / C++ with no real issues. Am using the NPT sample code and it seems to be working fine, except on one machine the system time is not getting set and is not working at all. Every time I pull the time it is the same, 01-01-1970 00-00-00, etc.
Have verified that NPT is returning properly with current time, etc.
The code that sets and gets the time is 100% the same on both machines, but am running slightly different code otherwise.
I am going to trouble shoot by switching machines, etc, but is there a way that somehow the system wall clock and be disabled / enabled?
Have verified that NPT is returning properly with current time, etc.
The code that sets and gets the time is 100% the same on both machines, but am running slightly different code otherwise.
I am going to trouble shoot by switching machines, etc, but is there a way that somehow the system wall clock and be disabled / enabled?
Code:
time_t now = time(nullptr); struct tm timeinfo; gmtime_r(&now, &timeinfo); strftime(timestring, sizeof (timestring), "%m-%d-%Y:%H-%M-%S", &timeinfo);
Statistics: Posted by JeffOrthober — Tue Jan 30, 2024 10:52 am — Replies 0 — Views 25