diff options
-rw-r--r-- | firmware/common/timefuncs.c | 2 | ||||
-rw-r--r-- | firmware/target/hosted/rtc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index 42babbd8e3..7d385949b5 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c | |||
@@ -99,7 +99,7 @@ int set_time(const struct tm *tm) | |||
99 | } | 99 | } |
100 | #else /* No RTC */ | 100 | #else /* No RTC */ |
101 | (void)tm; | 101 | (void)tm; |
102 | return 0; | 102 | return -1; |
103 | #endif /* RTC */ | 103 | #endif /* RTC */ |
104 | } | 104 | } |
105 | 105 | ||
diff --git a/firmware/target/hosted/rtc.c b/firmware/target/hosted/rtc.c index 179e7ea909..8c430f3774 100644 --- a/firmware/target/hosted/rtc.c +++ b/firmware/target/hosted/rtc.c | |||
@@ -36,5 +36,5 @@ int rtc_read_datetime(struct tm *tm) | |||
36 | int rtc_write_datetime(const struct tm *tm) | 36 | int rtc_write_datetime(const struct tm *tm) |
37 | { | 37 | { |
38 | (void)tm; | 38 | (void)tm; |
39 | return 0; | 39 | return -1; |
40 | } | 40 | } |