Thanks Charles,
I'm using the 18LF46K22 and W5100 ethernet chip, the SNTP stuff are done and I get the seconds count from the server, no issues there. It's the conversion from seconds to true time that's bugging me and the reason I'm trying to avoid longs is that it adds a lot of overhead to the program even in sections not actually using longs.
I'm on my way to convert your convert-routine to use 16 bit variables but it does get a bit messy...
Thanks again for sharing!
/Henrik.




Bookmarks