Skip to content

Commit fe1d6b0

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Merge branch 'mbed_rtc_time_example_fix' of ssh://github.com/mprse/mbed-os into rollup
2 parents 408051a + 0a1e3a0 commit fe1d6b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/mbed_rtc_time.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ extern "C" {
4040
* int main() {
4141
* set_time(1256729737); // Set RTC time to Wed, 28 Oct 2009 11:35:37
4242
*
43-
* while(1) {
43+
* while (true) {
4444
* time_t seconds = time(NULL);
4545
*
46-
* printf("Time as seconds since January 1, 1970 = %d\n", seconds);
46+
* printf("Time as seconds since January 1, 1970 = %u\n", (unsigned int)seconds);
4747
*
4848
* printf("Time as a basic string = %s", ctime(&seconds));
4949
*

0 commit comments

Comments
 (0)