summaryrefslogtreecommitdiff
path: root/src/Device/Device.cpp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2023-09-14 10:51:05 -0500
committerJohn Klug <john.klug@multitech.com>2023-09-14 10:51:05 -0500
commitf56ae4eccc4e8ec75f08ec1d01327f008d29d5af (patch)
tree5879915e82415edf6d6550f833bfa22c5bebd61b /src/Device/Device.cpp
parent3ce7b597de0df365ce4d66b05b45e3701dd80501 (diff)
downloadmts-io-sysfs-f56ae4eccc4e8ec75f08ec1d01327f008d29d5af.tar.gz
mts-io-sysfs-f56ae4eccc4e8ec75f08ec1d01327f008d29d5af.tar.bz2
mts-io-sysfs-f56ae4eccc4e8ec75f08ec1d01327f008d29d5af.zip
If a GPIO value is stored successfully, exit with status 0
Diffstat (limited to 'src/Device/Device.cpp')
-rw-r--r--src/Device/Device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Device/Device.cpp b/src/Device/Device.cpp
index c99e252..d52fa93 100644
--- a/src/Device/Device.cpp
+++ b/src/Device/Device.cpp
@@ -575,7 +575,7 @@ void Device::store(std::string name, std::string value) {
retval = gpiod_ctxless_set_value(chipname, offset, intvalue,
false, CMDNAME, NULL, NULL);
if(retval != -1)
- return;
+ exitHandler(0);
}
std::ofstream fileToWrite(SYSFS_PLATFORM + name);