From 61c2c135bb430692fb587a2b5356440ea0cd194b Mon Sep 17 00:00:00 2001 From: IW3IJQ Date: Wed, 24 Oct 2018 14:13:41 +0200 Subject: [PATCH] Wait for udev adjust gpio permissions iusse#176 --- ptt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ptt.c b/ptt.c index c070e5af..a95ab592 100644 --- a/ptt.c +++ b/ptt.c @@ -458,6 +458,8 @@ void export_gpio(int ch, int ot, int invert, int direction) exit (1); } } + /* Wait for udev adjust permissions */ + sleep (1); close (fd); /*