summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2023-12-07 10:55:11 -0600
committerJohn Klug <john.klug@multitech.com>2023-12-07 10:55:11 -0600
commit9d89b055e1d14c1326bb50c93379a4426617427f (patch)
tree78081e083e424fbc83e7d865142738723e25e826
parenta72ff07272245a43cf4f5c3aa22ebad3f0e8c2ae (diff)
downloadmts-io-sysfs-9d89b055e1d14c1326bb50c93379a4426617427f.tar.gz
mts-io-sysfs-9d89b055e1d14c1326bb50c93379a4426617427f.tar.bz2
mts-io-sysfs-9d89b055e1d14c1326bb50c93379a4426617427f.zip
Exit mts-io-sysfs when libgpiod successfully stores a GPIO value
-rw-r--r--src/Device/Device.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Device/Device.cpp b/src/Device/Device.cpp
index 2b56895..193b7f7 100644
--- a/src/Device/Device.cpp
+++ b/src/Device/Device.cpp
@@ -769,6 +769,7 @@ void Device::store(std::string name, std::string value) {
if(retval == -1) {
simpleError("Could not set GPIO value",errno,111);
}
+ exitHandler(0);
}
}
}