From e23d0ed4c82a46b04e53443be7cb5c67ae59267a Mon Sep 17 00:00:00 2001 From: Jordan Mackie Date: Sun, 1 Aug 2021 13:23:36 +0100 Subject: [PATCH] fix path --- Button/buttons.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Button/buttons.go b/Button/buttons.go index 3d989de..f28fa89 100644 --- a/Button/buttons.go +++ b/Button/buttons.go @@ -27,7 +27,7 @@ const ( ) func findFilename() string { - filename := "/dev/input/by-path/platform-gpio-keys.0-event" + filename := "/dev/input/by-path/platform-gpio_keys-event" if _, err := os.Stat(filename); os.IsNotExist(err) { log.Fatal("Cannot find keys file")