Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Jul 22, 2019
1 parent 06622f0 commit 45ae3f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion indi-starbook/command_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *use
return real_size;
}

CommandResponse CommandInterface::SendCommand(std::string cmd)
CommandResponse CommandInterface::SendCommand(const std::string &cmd)
{
CURLcode rc;
CURL *handle = connection->getHandle();
Expand Down
5 changes: 3 additions & 2 deletions indi-starbook/command_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class CommandInterface

ResponseCode Home()
{
return SendOkCommand("GOHOME?HOME=0"); // as seen in https://github.com/farhi/matlab-starbook
// as seen in https://github.com/farhi/matlab-starbook
return SendOkCommand("GOHOME?HOME=0");
}

ResponseCode Stop()
Expand Down Expand Up @@ -132,7 +133,7 @@ class CommandInterface

std::string m_Device {"Starbook"};

CommandResponse SendCommand(std::string command);
CommandResponse SendCommand(const std::string &command);

ResponseCode SendOkCommand(const std::string &cmd);

Expand Down

0 comments on commit 45ae3f6

Please sign in to comment.