Skip to content

Commit b77cbfe

Browse files
committed
IO: Fix SPI.close()
1 parent bf0e649 commit b77cbfe

File tree

1 file changed

+1
-1
lines changed
  • java/libraries/io/src/processing/io

1 file changed

+1
-1
lines changed

java/libraries/io/src/processing/io/PWM.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void close() {
117117
// XXX: implicit clear()?
118118
// XXX: also check GPIO
119119

120-
String fn = "/sys/class/pwm/" + chip + "/export";
120+
String fn = "/sys/class/pwm/" + chip + "/unexport";
121121
int ret = NativeInterface.writeFile(fn, Integer.toString(channel));
122122
if (ret < 0) {
123123
if (ret == -2) { // ENOENT

0 commit comments

Comments
 (0)