From 63dc70dda9b5b2d3a98d4930127226485cb0164e Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 3 May 2024 13:31:04 +0200 Subject: [PATCH] Check if it has to be possible to update hardware (JSONs, DC). If yes, then exit(). --- UpdatePTUDevCtrl/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UpdatePTUDevCtrl/main.cpp b/UpdatePTUDevCtrl/main.cpp index 204380f..cd0f5cd 100644 --- a/UpdatePTUDevCtrl/main.cpp +++ b/UpdatePTUDevCtrl/main.cpp @@ -130,7 +130,9 @@ int main(int argc, char *argv[]) { if (!QDir(plugInDir).exists()) { qCritical() << plugInDir << "does not exists, but has to contain dc-library"; - exit(-1); + if (noUpdatePsaHardware == false) { + exit(-1); + } } // before loading the library, delete all possible shared memory segments