Skip to content

Commit 4fa8abc

Browse files
author
Demo User
committed
fix typos and confirm working in 4.9
1 parent b7660f1 commit 4fa8abc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

library/src/io/pwm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,18 @@ int __export_channels(int ss)
115115
if(access(buf,F_OK)==0) mode=1;
116116
else{
117117
fprintf(stderr, "ERROR in rc_pwm_init, export failed for subsystem %d channel %d\n", ss, 0);
118-
fprintf(stderr,"tried accessing to %s\n", buf);
118+
fprintf(stderr,"tried accessing %s\n", buf);
119119
return -1;
120120
}
121121
}
122122

123123
// check channel B
124-
if(mode==0) len = snprintf(buf, sizeof(buf), SYS_DIR "/pwm_chip%d/pwm1/enable", ss*2); // mode 0
124+
if(mode==0) len = snprintf(buf, sizeof(buf), SYS_DIR "/pwmchip%d/pwm1/enable", ss*2); // mode 0
125125
else len = snprintf(buf, sizeof(buf), SYS_DIR "/pwm-%d:1/enable",ssindex[ss]); // mode 1
126126
// if it exists, mode is 0
127127
if(access(buf,F_OK)!=0){
128128
fprintf(stderr, "ERROR in rc_pwm_init, export failed for subsystem %d channel %d\n", ss, 0);
129-
fprintf(stderr,"tried accessing to %s\n", buf);
129+
fprintf(stderr,"tried accessing %s\n", buf);
130130
return -1;
131131
}
132132
#ifdef DEBUG

0 commit comments

Comments
 (0)