From 321c6b9ff7a31a3ecd4d5509618d1c8610bbd5cb Mon Sep 17 00:00:00 2001 From: LenBar Date: Wed, 3 May 2017 11:56:32 +0200 Subject: [PATCH] Fix 4x4 keypads support --- matrix_keypad/RPi_GPIO.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_keypad/RPi_GPIO.py b/matrix_keypad/RPi_GPIO.py index ad8400f..117d064 100644 --- a/matrix_keypad/RPi_GPIO.py +++ b/matrix_keypad/RPi_GPIO.py @@ -71,8 +71,8 @@ def getKey(self): if tmpRead == 1: colVal=j - # if colVal is not 0 thru 2 then no button was pressed and we can exit - if colVal <0 or colVal >2: + # if colVal is not 0 thru 3 then no button was pressed and we can exit + if colVal <0 or colVal >3: self.exit() return