From 9d89b055e1d14c1326bb50c93379a4426617427f Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 7 Dec 2023 10:55:11 -0600 Subject: Exit mts-io-sysfs when libgpiod successfully stores a GPIO value --- src/Device/Device.cpp | 1 + 1 file changed, 1 insertion(+) 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); } } } -- cgit v1.2.3