From 578b89c9def58c23e9cd18bfc01ab548ee0f2788 Mon Sep 17 00:00:00 2001 From: Staars Date: Thu, 15 Aug 2019 11:20:53 +0200 Subject: [PATCH] remove #define USE_PAJ7620 from driver code --- sonoff/xsns_50_paj7620.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonoff/xsns_50_paj7620.ino b/sonoff/xsns_50_paj7620.ino index 633a652c4..165d6b649 100644 --- a/sonoff/xsns_50_paj7620.ino +++ b/sonoff/xsns_50_paj7620.ino @@ -27,7 +27,6 @@ base - code base from arendst and - https://github.com/Seeed-Studio/Gesture_PAJ7620 */ -#define USE_PAJ7620 #ifdef USE_I2C #ifdef USE_PAJ7620 @@ -181,7 +180,7 @@ struct{ /********************************************************************************************/ void PAJ7620DecodeGesture(void) { - switch (PAJ7620_gesture.current) { // we will accept only "clean" recognized gestures, the sensor can report multiple gestures at once via bitfield + switch (PAJ7620_gesture.current) { // we will accept only "clean" recognized gestures, the sensor can report multiple gestures at once via bitfield, but these are discarded case PAJ7620_DOWN: DEBUG_SENSOR_LOG(PSTR("DOWN")); snprintf_P(PAJ7620_currentGestureName, sizeof(PAJ7620_currentGestureName), PSTR("Down"));