From b569d690f5a99fe0b85787e22cd41c049c65a017 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 3 May 2014 17:34:19 +0100 Subject: [PATCH 1/3] RTC doc fix --- stmhal/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stmhal/rtc.c b/stmhal/rtc.c index ec3c0126b4..9dd67ee27e 100644 --- a/stmhal/rtc.c +++ b/stmhal/rtc.c @@ -260,7 +260,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(pyb_rtc_info_obj, pyb_rtc_info); /// /// `weekday` is 1-7 for Monday through Sunday. /// -/// `subseconds` is 0-59. +/// `subseconds` is a free-running timer and counts down from 255 to 0, hundreds of times a second. mp_obj_t pyb_rtc_datetime(uint n_args, const mp_obj_t *args) { if (n_args == 1) { // get date and time From e9ff5570c3b3a0af8937cf5a25012551b018c1a4 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 3 May 2014 17:50:46 +0100 Subject: [PATCH 2/3] Updated doc fix --- stmhal/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stmhal/rtc.c b/stmhal/rtc.c index 9dd67ee27e..a8ce06f42c 100644 --- a/stmhal/rtc.c +++ b/stmhal/rtc.c @@ -260,7 +260,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(pyb_rtc_info_obj, pyb_rtc_info); /// /// `weekday` is 1-7 for Monday through Sunday. /// -/// `subseconds` is a free-running timer and counts down from 255 to 0, hundreds of times a second. +/// `subseconds` is a free-running timer and counts down from 255 to 0, rolls around many times a second. mp_obj_t pyb_rtc_datetime(uint n_args, const mp_obj_t *args) { if (n_args == 1) { // get date and time From 86a9a8863270bad2fbaae75149e5f5e94e4160a1 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 3 May 2014 18:28:11 +0100 Subject: [PATCH 3/3] Fix incorrect fix ;) --- stmhal/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stmhal/rtc.c b/stmhal/rtc.c index a8ce06f42c..ea7aa789ec 100644 --- a/stmhal/rtc.c +++ b/stmhal/rtc.c @@ -260,7 +260,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(pyb_rtc_info_obj, pyb_rtc_info); /// /// `weekday` is 1-7 for Monday through Sunday. /// -/// `subseconds` is a free-running timer and counts down from 255 to 0, rolls around many times a second. +/// `subseconds` counts down from 255 to 0 mp_obj_t pyb_rtc_datetime(uint n_args, const mp_obj_t *args) { if (n_args == 1) { // get date and time