commit | b3d86c9f0a7487b8f22c656da675ab971a6e058c | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Thu Nov 15 16:13:19 2018 -0600 |
committer | Matt Spinler <spinler@us.ibm.com> | Thu Nov 15 16:27:14 2018 -0600 |
tree | a934ce47103a3ae67c1d935e10bbb4ace40ce3f7 | |
parent | 3c3ebbc1c627e613f9f59fdb8a17a253582926df [diff] |
Do dummy GPIO reads on startup Do a read of all of the button GPIOs after they are configured but before the sd_event handling has been set up to prevent a spurious sd_event callback as soon as the event loop starts. Without these, a button released signal gets sent every time the application starts. Tested: Saw that the spurious callbacks went away. Change-Id: I4d2a609f58f4debdd9280244e1f839f8f891be82 Signed-off-by: Matt Spinler <spinler@us.ibm.com>