Watchdog Bugfixes #432
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user