Skip to content

Commit 0a1e3a0

Browse files
committed
mbed_rtc_time.h - documentation fix
Make example code consistent with: https://os.mbed.com/teams/mbed_example/code/time_HelloWorld/file/0c6401d671c6/main.cpp/
1 parent ba23fef commit 0a1e3a0

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)