wiringPi : interrupt error fix(gpio sysfs unexport).

Change-Id: I1e826b7847dc140fe0edf79ed56aaa19be5c543c
This commit is contained in:
charles.park
2017-12-07 18:29:46 +09:00
parent 060da4d553
commit 9c84ec6db5

View File

@@ -535,6 +535,9 @@ void doEdge (int argc, char *argv [])
char *mode ;
char fName [128] ;
// Reset gpio sysfs
doUnexport(3, argv);
if (argc != 4) {
fprintf (stderr, "Usage: %s edge pin mode\n", argv [0]) ;
exit (1) ;