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