Hello,
Very new and would appreciate any pointers. I have an interface where I am getting the current time from a GPS and then want to set the system time to match. I'm having trouble figuring out how to convert, the time (hours, minutes, seconds, decimal) to a TIME_STRUCT needed by _time_set().
Any ideas?
Thanks!
Solved! Go to Solution.
Fill in a DATE_STRUCT and use _time_from_date, or fill in an MQX_XDATE_STRUCT, use _time_xdate_to_ticks followed by _time_set_ticks.
Fill in a DATE_STRUCT and use _time_from_date, or fill in an MQX_XDATE_STRUCT, use _time_xdate_to_ticks followed by _time_set_ticks.