Skip to content

Commit c590535

Browse files
committed
Add short delay after enabling GPIO pin. Issue #176
1 parent edaf661 commit c590535

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ptt.c

+3
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ void export_gpio(int ch, int ot, int invert, int direction)
458458
exit (1);
459459
}
460460
}
461+
/* Wait for udev to adjust permissions after enabling GPIO. */
462+
/* https://github.com/wb2osz/direwolf/issues/176 */
463+
SLEEP_MS(250);
461464
close (fd);
462465

463466
/*

0 commit comments

Comments
 (0)