From f82cc2aeda2d99a41e5a1acbb201dd780cabb801 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 5 Mar 2023 20:06:06 +0100 Subject: [PATCH] probably contains app name as well --- bsp_q7s/obsw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp_q7s/obsw.cpp b/bsp_q7s/obsw.cpp index cd69bdf5..418d179c 100644 --- a/bsp_q7s/obsw.cpp +++ b/bsp_q7s/obsw.cpp @@ -52,7 +52,7 @@ int obsw::obsw() { bootDelayHandling(); bool initWatchFunction = false; - if (std::filesystem::current_path() == "/usr/bin") { + if (std::filesystem::current_path().string().find("/usr/bin") != std::string::npos) { initWatchFunction = true; } ReturnValue_t result = WATCHDOG_HANDLER.initialize(initWatchFunction);