diff --git a/Plugins/Thermx/CMakeFiles/thermix.dir/ThermxController.cpp.o b/Plugins/Thermx/CMakeFiles/thermix.dir/ThermxController.cpp.o index 2fd8502..edb82db 100644 Binary files a/Plugins/Thermx/CMakeFiles/thermix.dir/ThermxController.cpp.o and b/Plugins/Thermx/CMakeFiles/thermix.dir/ThermxController.cpp.o differ diff --git a/Plugins/Thermx/ThermxController.cpp b/Plugins/Thermx/ThermxController.cpp index 4526074..3de0869 100644 --- a/Plugins/Thermx/ThermxController.cpp +++ b/Plugins/Thermx/ThermxController.cpp @@ -13,7 +13,11 @@ std::vector split(std::string str, std::string c){ } void ThermxController::getData(){ - if(!this->enabled || serialPort == nullptr) return; + if(!this->enabled || serialPort == nullptr){ + _trx->enabled = false; + return; + } + _trx->enabled = true; std::string s; if(!(serialPort->GetState() == mn::CppLinuxSerial::State::OPEN)){ //std::cout << "port was closed, opening..." <