Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
00bc9403
Commit
00bc9403
authored
Feb 09, 2017
by
Philip Gladstone
Committed by
Marcel Stör
Feb 09, 2017
Browse files
Fix the adjusting of the time when there is a rollover (#1788)
parent
a21c3d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/gpio.c
View file @
00bc9403
...
...
@@ -43,7 +43,8 @@ static void gpio_intr_callback_task (task_param_t param, uint8 priority)
// Now must be >= then . Add the missing bits
if
(
then
>
(
now
&
0xffffff
))
{
then
+=
0x1000000
;
// Now must have rolled over since the interrupt -- back it down
now
-=
0x1000000
;
}
then
=
(
then
+
(
now
&
0x7f000000
))
&
0x7fffffff
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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