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); /*