Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CmdMessenger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void CmdMessenger::sendCmdEscArg(char* arg)
* Send formatted argument.
* Note that floating points are not supported and resulting string is limited to 128 chars
*/
void CmdMessenger::sendCmdfArg(char *fmt, ...)
void CmdMessenger::sendCmdfArg(const char * const fmt, ...)
{
const int maxMessageSize = 128;
if (startCommand) {
Expand Down Expand Up @@ -675,4 +675,4 @@ void CmdMessenger::printSci(double f, unsigned int digits)
char output[16];
sprintf(output, format, whole, part, exponent);
comms->print(output);
}
}
2 changes: 1 addition & 1 deletion CmdMessenger.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class CmdMessenger

void sendCmdStart(byte cmdId);
void sendCmdEscArg(char *arg);
void sendCmdfArg(char *fmt, ...);
void sendCmdfArg(const char * const fmt, ...);
bool sendCmdEnd(bool reqAc = false, byte ackCmdId = 1, unsigned int timeout = DEFAULT_TIMEOUT);

/**
Expand Down