Set time on make (#35)
* Time can get set from makefile * Added setting make time into simulator * Added Hash in settings * Added default location * Cuts the Githash to 6 characters in the settings in case the makefile didn't do that already * bump gossamer commit * remove automatic timezone setting * automatic time set: rename MAKEFILE_ to BUILD_ to match gossamer * Revert "Added default location" This reverts commit c24f69450fd40472c4f6cebb790a56c3f0d69cb6. * silence warning * watch_get_init_date_time: explicitly initialize all fields to 0 --------- Co-authored-by: Joey Castillo <joeycastillo@utexas.edu>
This commit is contained in:
@@ -68,6 +68,11 @@ void watch_rtc_set_date_time(rtc_date_time_t date_time);
|
||||
*/
|
||||
rtc_date_time_t watch_rtc_get_date_time(void);
|
||||
|
||||
/** @brief Returns the date and time that the watch defaults to when power cycled. Often comes from the Makefile flags.
|
||||
* @return A rtc_date_time_t with the current date and time, with a year value from 0-63 representing 2020-2083.
|
||||
*/
|
||||
rtc_date_time_t watch_get_init_date_time(void);
|
||||
|
||||
/** @brief Registers an alarm callback that will be called when the RTC time matches the target time, as masked
|
||||
* by the provided mask.
|
||||
* @param callback The function you wish to have called when the alarm fires. If this value is NULL, the alarm
|
||||
|
||||
Reference in New Issue
Block a user