diff options
author | John Klug <john.klug@multitech.com> | 2023-12-07 10:55:11 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-12-07 10:55:11 -0600 |
commit | 9d89b055e1d14c1326bb50c93379a4426617427f (patch) | |
tree | 78081e083e424fbc83e7d865142738723e25e826 | |
parent | a72ff07272245a43cf4f5c3aa22ebad3f0e8c2ae (diff) | |
download | mts-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.cpp | 1 |
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); } } } |