optimization for cmd executor

This commit is contained in:
2023-03-12 20:49:34 +01:00
parent 4d6f6e6b23
commit 9a8d775eb1

View File

@ -17,7 +17,7 @@ ReturnValue_t CommandExecutor::load(std::string command, bool blocking, bool pri
return COMMAND_PENDING;
}
currentCmd = command;
currentCmd = std::move(command);
this->blocking = blocking;
this->printOutput = printOutput;
if (state == States::IDLE) {