From f56ae4eccc4e8ec75f08ec1d01327f008d29d5af Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 14 Sep 2023 10:51:05 -0500 Subject: If a GPIO value is stored successfully, exit with status 0 --- src/Device/Device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3