From ea5ec56f2e3bdecf03961a47739705f049b01765 Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Tue, 16 Jun 2026 08:07:59 +0200 Subject: [PATCH] reducing disconnected error --- src/utils/outlet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/outlet.cpp b/src/utils/outlet.cpp index 6f9cf74..9cba3c8 100644 --- a/src/utils/outlet.cpp +++ b/src/utils/outlet.cpp @@ -11,8 +11,8 @@ Outlet::Outlet(int index, std::string inputRecordName, this->index = index; this->innerState = State::UNKNOWN; - this->wasOutputConnected = true; - this->wasInputConnected = true; + this->wasOutputConnected = false; + this->wasInputConnected = false; this->gracePeriod = 3; } @@ -174,7 +174,7 @@ std::string Outlet::stateToString(State state) { } Outlet::State Outlet::_getCommand() { - if (this->isInputConnected()) + if (!this->isInputConnected()) return this->lastCommand; std::string value; int returnCode = this->output.get(&value);