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
2 changes: 1 addition & 1 deletion examples/ArduinoController/ArduinoController.ino
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void OnSetLedFrequency()
ledFrequency = cmdMessenger.readFloatArg();
// Make sure the frequency is not zero (to prevent divide by zero)
if (ledFrequency < 0.001) { ledFrequency = 0.001; }
// translate frequency in on and off times in miliseconds
// translate frequency in on and off times in milliseconds
intervalOn = (500.0/ledFrequency);
intervalOff = (1000.0/ledFrequency);
cmdMessenger.sendCmd(kAcknowledge,ledFrequency);
Expand Down
2 changes: 1 addition & 1 deletion examples/CmdMessengerTest/CmdMessengerTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void setup()
// Set command to PC to say we're ready
//OnArduinoReady();

cmdMessenger.sendCmd(kAcknowledge,"Arduino has resetted!");
cmdMessenger.sendCmd(kAcknowledge,"Arduino has reset!");

// set pin for blink LED
pinMode(kBlinkLed, OUTPUT);
Expand Down
4 changes: 2 additions & 2 deletions examples/ConsoleShell/ConsoleShell.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Available commands
// 0; - This command list
// 1,<led state>; - Set led. 0 = off, 1 = on
// 2,<led brightness>; - Set led brighness. 0 - 1000
// 2,<led brightness>; - Set led brightness. 0 - 1000
// 3; - Show led state
//
// Command> 3;
Expand Down Expand Up @@ -110,7 +110,7 @@ void ShowCommands()
Serial.println("Available commands");
Serial.println(" 0; - This command list");
Serial.println(" 1,<led state>; - Set led. 0 = off, 1 = on");
Serial.print (" 2,<led brightness>; - Set led brighness. 0 - ");
Serial.print (" 2,<led brightness>; - Set led brightness. 0 - ");
Serial.println(PWMinterval);
Serial.println(" 3; - Show led state");
}
Expand Down
6 changes: 3 additions & 3 deletions examples/SendAndReceiveArguments/SendAndReceiveArguments.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This example expands the previous SendandReceive example. The Arduino will now receive multiple
// and sent multiple float values.
// It adds a demonstration of how to:
// - Return multiple types status; It can return an Acknowlegde and Error command
// - Return multiple types status; It can return an Acknowledge and Error command
// - Receive multiple parameters,
// - Send multiple parameters
// - Call a function periodically
Expand Down Expand Up @@ -56,10 +56,10 @@ void OnArduinoReady()
// Callback function calculates the sum of the two received float values
void OnFloatAddition()
{
// Retreive first parameter as float
// Retrieve first parameter as float
float a = cmdMessenger.readFloatArg();

// Retreive second parameter as float
// Retrieve second parameter as float
float b = cmdMessenger.readFloatArg();

// Send back the result of the addition
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleWatchdog/SimpleWatchdog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void onUnknownCommand()
{
}

// Callback function to respond to indentify request. This is part of the
// Callback function to respond to identify request. This is part of the
// Auto connection handshake.
void onIdentifyRequest()
{
Expand Down
6 changes: 3 additions & 3 deletions src/CmdMessenger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
3.2 - Small fixes and sending long argument support
3.1 - Added examples
3.0 - Bugfixes on 2.2
- Wait for acknowlegde
- Wait for acknowledge
- Sending of common type arguments (float, int, char)
- Multi-argument commands
- Escaping of special characters
Expand Down Expand Up @@ -226,7 +226,7 @@ bool CmdMessenger::blockedTillReply(unsigned int timeout, byte ackCmdId)
bool CmdMessenger::checkForAck(byte ackCommand)
{
while (comms->available()) {
//Processes a byte and determines if an acknowlegde has come in
//Processes a byte and determines if an acknowledge has come in
int messageState = processLine(comms->read());
if (messageState == kEndOfMessage) {
int id = readInt16Arg();
Expand All @@ -248,7 +248,7 @@ bool CmdMessenger::checkForAck(byte ackCommand)
bool CmdMessenger::next()
{
char * temppointer = NULL;
// Currently, cmd messenger only supports 1 char for the field seperator
// Currently, cmd messenger only supports 1 char for the field separator
switch (messageState) {
case kProccesingMessage:
return false;
Expand Down
6 changes: 3 additions & 3 deletions test/embedded/lib/CmdMessenger/CmdMessenger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
3.2 - Small fixes and sending long argument support
3.1 - Added examples
3.0 - Bugfixes on 2.2
- Wait for acknowlegde
- Wait for acknowledge
- Sending of common type arguments (float, int, char)
- Multi-argument commands
- Escaping of special characters
Expand Down Expand Up @@ -226,7 +226,7 @@ bool CmdMessenger::blockedTillReply(unsigned int timeout, byte ackCmdId)
bool CmdMessenger::checkForAck(byte ackCommand)
{
while (comms->available()) {
//Processes a byte and determines if an acknowlegde has come in
//Processes a byte and determines if an acknowledge has come in
int messageState = processLine(comms->read());
if (messageState == kEndOfMessage) {
int id = readInt16Arg();
Expand All @@ -248,7 +248,7 @@ bool CmdMessenger::checkForAck(byte ackCommand)
bool CmdMessenger::next()
{
char * temppointer = NULL;
// Currently, cmd messenger only supports 1 char for the field seperator
// Currently, cmd messenger only supports 1 char for the field separator
switch (messageState) {
case kProccesingMessage:
return false;
Expand Down