Skip to content

Commit a6aa5d8

Browse files
committed
Merge pull request #5 from varzac/symlink-fix
Fix symlinks that are created on exporting.
2 parents 632a47f + 0e3518c commit a6aa5d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/export.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub fn export(pin_config: &PinConfig, symlink_root: Option<&str>) -> Result<(),
7373
for name in &pin_config.names {
7474
let mut dst = path::PathBuf::from(symroot);
7575
dst.push(name);
76-
try!(match unix_fs::symlink(format!("/sys/class/gpio{}", pin_config.num), dst) {
76+
try!(match unix_fs::symlink(format!("/sys/class/gpio/gpio{}", pin_config.num), dst) {
7777
Ok(_) => Ok(()),
7878
Err(e) => {
7979
match e.kind() {

0 commit comments

Comments
 (0)