From c59053536e040b2122e838c56e1343d7eba3da88 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Sun, 7 Jul 2019 11:29:23 -0400 Subject: [PATCH] Add short delay after enabling GPIO pin. Issue #176 --- ptt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ptt.c b/ptt.c index dd689cc..58d2da6 100644 --- a/ptt.c +++ b/ptt.c @@ -458,6 +458,9 @@ void export_gpio(int ch, int ot, int invert, int direction) exit (1); } } + /* Wait for udev to adjust permissions after enabling GPIO. */ + /* https://github.com/wb2osz/direwolf/issues/176 */ + SLEEP_MS(250); close (fd); /*