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
189fe964
Unverified
Commit
189fe964
authored
May 02, 2020
by
Marcel Stör
Committed by
GitHub
May 02, 2020
Browse files
Correct level value in gpio.trig() callback (#2883)
parents
43588c16
b4c94fa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/gpio.c
View file @
189fe964
...
...
@@ -216,7 +216,7 @@ static void nodemcu_gpio_callback_task (task_param_t param, task_prio_t prio)
{
(
void
)
prio
;
uint32_t
gpio
=
(
uint32_t
)
param
&
0xffu
;
int
level
=
((
int
)
param
)
&
0x100u
;
int
level
=
((
(
int
)
param
)
&
0x100u
)
>>
8
;
lua_State
*
L
=
lua_getstate
();
if
(
gpio_cb_refs
[
gpio
]
!=
LUA_NOREF
)
...
...
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