4 years, 3 months ago.
set_time() problem togheter with WakeUp timer
I have a function calibrate_time() which gets the time from a seeed gprs shield and uses this to update the time with the time function time_set(). The function works fine when i run it in main and with a ticker for periodic interrupts.
The problem comes along as I want to use the WakeUp library to run the function with periods of one hour. When I use this and attach the calibrate_time function, it runs fine until I try setting the RTC with the set_time() function. The program halts at this point.
Why is this, and how can I fix it? Is the problem linked to the RTC already being used by the WakeUp timer?
You need to log in to post a question