Skip to content
Snippets Groups Projects
Commit 1eabf431 authored by John Crispin's avatar John Crispin
Browse files

gpio-button-hotplug: use gpio_button_get_value() to initialize last_state.


TL-WR720N-v3 has a slider switch composed of 2 GPIO buttons which can be
used to swtich between 3 positions.  At leat 1 button is in pressed state
in any of those positions.  Initialize 'last_state' as 0 (released) will
cause the device to automatically enter failsafe mode on every bootup.

Signed-off-by: default avatarYousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 37643
parent ef964229
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment