mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 03:11:08 +01:00
IO: Fix SPI.close()
This commit is contained in:
@@ -117,7 +117,7 @@ public class PWM {
|
||||
// XXX: implicit clear()?
|
||||
// XXX: also check GPIO
|
||||
|
||||
String fn = "/sys/class/pwm/" + chip + "/export";
|
||||
String fn = "/sys/class/pwm/" + chip + "/unexport";
|
||||
int ret = NativeInterface.writeFile(fn, Integer.toString(channel));
|
||||
if (ret < 0) {
|
||||
if (ret == -2) { // ENOENT
|
||||
|
||||
Reference in New Issue
Block a user