Add short delay after enabling GPIO pin. Issue #176

This commit is contained in:
wb2osz 2019-07-07 11:29:23 -04:00
parent edaf661bb1
commit c59053536e
1 changed files with 3 additions and 0 deletions

3
ptt.c
View File

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