From 25eee18e7bda055542f0a28ba2f38a298d1e897d Mon Sep 17 00:00:00 2001
From: xenDE <daniel@mameso.com>
Date: Sat, 9 Nov 2019 19:50:47 +0100
Subject: [PATCH] =?UTF-8?q?verhindern=20von=20doppelten=20ausf=C3=BChrunge?=
 =?UTF-8?q?n?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

i had with the old value 250 many double executions, despite short push switches. The new value 600 prevents this. Tested with volume buttons.
---
 pwnagotchi/plugins/default/gpio_buttons.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pwnagotchi/plugins/default/gpio_buttons.py b/pwnagotchi/plugins/default/gpio_buttons.py
index 96a353f..10075ef 100644
--- a/pwnagotchi/plugins/default/gpio_buttons.py
+++ b/pwnagotchi/plugins/default/gpio_buttons.py
@@ -34,5 +34,5 @@ class GPIOButtons(plugins.Plugin):
         for gpio, command in gpios.items():
             self.ports[gpio] = command
             GPIO.setup(gpio, GPIO.IN, GPIO.PUD_UP)
-            GPIO.add_event_detect(gpio, GPIO.FALLING, callback=self.runCommand, bouncetime=250)
+            GPIO.add_event_detect(gpio, GPIO.FALLING, callback=self.runCommand, bouncetime=600)
             logging.info("Added command: %s to GPIO #%d", command, gpio)