Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fw/services/common/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ void clock_request_time_from_phone(void) {
sizeof(request), COMM_SESSION_DEFAULT_TIMEOUT);
}

time_t clock_to_timestamp(WeekDay day, int hour, int minute) {
DEFINE_SYSCALL(time_t, clock_to_timestamp, WeekDay day, int hour, int minute) {
time_t t = sys_get_time();
struct tm cal;
sys_localtime_r(&t, &cal);
Expand Down
2 changes: 0 additions & 2 deletions src/fw/services/common/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ void clock_set_time(time_t utc_time);
//! Always returns a timestamp for the next occurring instance,
//! example: specifying TODAY@14:30 when it is 14:40 will return a timestamp for 7 days from
//! now at 14:30
//! @note This function does not support Daylight Saving Time (DST) changes, events scheduled
//! during a DST change will be off by an hour.
//! @param day WeekDay day of week including support for specifying TODAY
//! @param hour hour specified in 24-hour format [0-23]
//! @param minute minute [0-59]
Expand Down
Loading