Good afternoon all.
I have been experimenting with the TimeLib library example with a view to displaying the time & date in an application I am devloping.
I find that I can get TimeLib to synchronise with the host PC correctly and hence display, and keep up with the PC time.
However, that seems to ONLY work when the code is freshly uploaded into the Teensy (4.1) which then then rebooted by the IDE. If I close down the IDE, and then reboot the Teensy, the current time is not picked up - instead the time defaults to the UNIX initial date (01/01/1970 00:00:00).
So has anyone any hints on what must be done to enable the time to be picked up from a PC when the Teensy has not booted from a fresh program load via the IDE?
Thanks a lot ...
Kenneth Spencer
I have been experimenting with the TimeLib library example with a view to displaying the time & date in an application I am devloping.
I find that I can get TimeLib to synchronise with the host PC correctly and hence display, and keep up with the PC time.
However, that seems to ONLY work when the code is freshly uploaded into the Teensy (4.1) which then then rebooted by the IDE. If I close down the IDE, and then reboot the Teensy, the current time is not picked up - instead the time defaults to the UNIX initial date (01/01/1970 00:00:00).
So has anyone any hints on what must be done to enable the time to be picked up from a PC when the Teensy has not booted from a fresh program load via the IDE?
Thanks a lot ...
Kenneth Spencer