diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-07-10 10:15:11 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-07-10 11:37:48 +0200 |
| commit | ecb7f9fe581b746338b351415cf7bc0e3803cab6 (patch) | |
| tree | a684b62ee6f11fd89a3a79c62feb7e5eaf21689d /cc3200/mods/modutime.c | |
| parent | fa47bebfbc909835df7b38aed80c62e37493a7df (diff) | |
cc3200: Set simplelink time and date when enabling WLAN.
Diffstat (limited to 'cc3200/mods/modutime.c')
| -rw-r--r-- | cc3200/mods/modutime.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cc3200/mods/modutime.c b/cc3200/mods/modutime.c index d69e5c4e2..2282b876b 100644 --- a/cc3200/mods/modutime.c +++ b/cc3200/mods/modutime.c @@ -136,12 +136,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(time_sleep_obj, time_sleep); /// \function time() /// Returns the number of seconds, as an integer, since 1/1/2000. STATIC mp_obj_t time_time(void) { - uint32_t seconds; - uint16_t mseconds; - - // get the seconds and the milliseconds from the RTC - MAP_PRCMRTCGet(&seconds, &mseconds); - return mp_obj_new_int(seconds); + return mp_obj_new_int(pybrtc_get_seconds()); } MP_DEFINE_CONST_FUN_OBJ_0(time_time_obj, time_time); |
