diff options
author | Damien George <damien.p.george@gmail.com> | 2017-08-30 10:59:58 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-08-30 10:59:58 +1000 |
commit | 71c9cfb028d423bf4760d66b1afe8951335fa5da (patch) | |
tree | 83ce8ec7270f759f73911f5b45bede989872a9b5 /esp8266/machine_rtc.c | |
parent | 784909ce1655bf8b2a97ac81a3842e844992082f (diff) |
all: Convert remaining "mp_uint_t n_args" to "size_t n_args".
This is to have consistency across the whole repository.
Diffstat (limited to 'esp8266/machine_rtc.c')
-rw-r--r-- | esp8266/machine_rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/esp8266/machine_rtc.c b/esp8266/machine_rtc.c index c5d04e0cf..f6a13c095 100644 --- a/esp8266/machine_rtc.c +++ b/esp8266/machine_rtc.c @@ -126,7 +126,7 @@ void rtc_prepare_deepsleep(uint64_t sleep_us) { system_rtc_mem_write(MEM_DELTA_ADDR, &delta, sizeof(delta)); } -STATIC mp_obj_t pyb_rtc_datetime(mp_uint_t n_args, const mp_obj_t *args) { +STATIC mp_obj_t pyb_rtc_datetime(size_t n_args, const mp_obj_t *args) { if (n_args == 1) { // Get time uint64_t msecs = pyb_rtc_get_us_since_2000() / 1000; @@ -165,7 +165,7 @@ STATIC mp_obj_t pyb_rtc_datetime(mp_uint_t n_args, const mp_obj_t *args) { } STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_rtc_datetime_obj, 1, 2, pyb_rtc_datetime); -STATIC mp_obj_t pyb_rtc_memory(mp_uint_t n_args, const mp_obj_t *args) { +STATIC mp_obj_t pyb_rtc_memory(size_t n_args, const mp_obj_t *args) { uint8_t rtcram[MEM_USER_MAXLEN]; uint32_t len; |