From 8ffaa1506e3380348bb9fc192539b79c43e4ff34 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Sat, 3 Aug 2019 13:03:12 +0200 Subject: [PATCH] fix(pushbuttons): Add Button 2 support --- lib/card10/pb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/card10/pb.c b/lib/card10/pb.c index cb152722..086e4111 100644 --- a/lib/card10/pb.c +++ b/lib/card10/pb.c @@ -34,12 +34,12 @@ * ******************************************************************************/ -#include <stddef.h> #include "mxc_config.h" #include "mxc_assert.h" #include "pb.h" #include "portexpander.h" - +#include "MAX77650-Arduino-Library.h" +#include <stddef.h> /******************************************************************************/ int PB_Init(void) { @@ -123,7 +123,7 @@ int PB_Get(unsigned int pb) } break; case 2: - // TODO: read pmic button + return MAX77650_getDebounceStatusnEN0(); break; } return 0; -- GitLab