Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
d09b6b9a
Commit
d09b6b9a
authored
Aug 25, 2016
by
Damien George
Browse files
esp8266/modpybrtc: Use 64-bit arithmetic when computing alarm expiry.
parent
78bc31e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/modpybrtc.c
View file @
d09b6b9a
...
...
@@ -212,7 +212,7 @@ STATIC mp_obj_t pyb_rtc_alarm(mp_obj_t self_in, mp_obj_t alarm_id, mp_obj_t time
}
// set expiry time (in microseconds)
pyb_rtc_alarm0_expiry
=
pyb_rtc_get_us_since_2000
()
+
mp_obj_get_int
(
time_in
)
*
1000
;
pyb_rtc_alarm0_expiry
=
pyb_rtc_get_us_since_2000
()
+
(
uint64_t
)
mp_obj_get_int
(
time_in
)
*
1000
;
return
mp_const_none
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment