optimization for cmd executor

This commit is contained in:
Robin Müller 2023-03-12 20:49:34 +01:00
parent 4d6f6e6b23
commit 9a8d775eb1
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

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) {