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>
3 files changed
tree: a934ce47103a3ae67c1d935e10bbb4ace40ce3f7
  1. inc/
  2. src/
  3. .clang-format
  4. CMakeLists.txt
  5. LICENSE
  6. MAINTAINERS
  7. settings.hpp.in