Skip to content

Commit

Permalink
pwm.c: do not unexport channels
Browse files Browse the repository at this point in the history
The kernel complains that the PWM is not stopped ahead of being
unexported. This may or may not be the case, but in any case,
this helps avoid the kernel issue.

Fixes beagleboard#154
  • Loading branch information
Jason Kridner committed Mar 27, 2019
1 parent 3d80f62 commit d57c81a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/src/io/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ static int __export_channels(int ss)
*/
static int __unexport_channels(int ss)
{
/* At a minimum, the channels need to be disabled prior to being unexported */
return 0;

int unexport_fd=0;
char buf[MAXBUF];
int len;
Expand Down

0 comments on commit d57c81a

Please sign in to comment.