Skip to content

Commit 9122ed6

Browse files
authored
Merge pull request #4480 from pan-/fix_time_return
rtc_time: Fix incorrect return value when the calendar is not available.
2 parents ea7561d + c335a00 commit 9122ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/mbed_rtc_time.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ time_t time(time_t *timer)
5353
}
5454
}
5555

56-
time_t t = 0;
56+
time_t t = -1;
5757
if (_rtc_read != NULL) {
5858
t = _rtc_read();
5959
}

0 commit comments

Comments
 (0)