diff --git a/examples/ArduinoController/ArduinoController.ino b/examples/ArduinoController/ArduinoController.ino index 2783980..ce37d10 100644 --- a/examples/ArduinoController/ArduinoController.ino +++ b/examples/ArduinoController/ArduinoController.ino @@ -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); diff --git a/examples/CmdMessengerTest/CmdMessengerTest.ino b/examples/CmdMessengerTest/CmdMessengerTest.ino index 973d5b9..3b1d896 100644 --- a/examples/CmdMessengerTest/CmdMessengerTest.ino +++ b/examples/CmdMessengerTest/CmdMessengerTest.ino @@ -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); diff --git a/examples/ConsoleShell/ConsoleShell.ino b/examples/ConsoleShell/ConsoleShell.ino index 5e19d1d..7c710da 100644 --- a/examples/ConsoleShell/ConsoleShell.ino +++ b/examples/ConsoleShell/ConsoleShell.ino @@ -10,7 +10,7 @@ // Available commands // 0; - This command list // 1,; - Set led. 0 = off, 1 = on -// 2,; - Set led brighness. 0 - 1000 +// 2,; - Set led brightness. 0 - 1000 // 3; - Show led state // // Command> 3; @@ -110,7 +110,7 @@ void ShowCommands() Serial.println("Available commands"); Serial.println(" 0; - This command list"); Serial.println(" 1,; - Set led. 0 = off, 1 = on"); - Serial.print (" 2,; - Set led brighness. 0 - "); + Serial.print (" 2,; - Set led brightness. 0 - "); Serial.println(PWMinterval); Serial.println(" 3; - Show led state"); } diff --git a/examples/SendAndReceiveArguments/SendAndReceiveArguments.ino b/examples/SendAndReceiveArguments/SendAndReceiveArguments.ino index c2d1be6..89f06f6 100644 --- a/examples/SendAndReceiveArguments/SendAndReceiveArguments.ino +++ b/examples/SendAndReceiveArguments/SendAndReceiveArguments.ino @@ -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 @@ -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 diff --git a/examples/SimpleWatchdog/SimpleWatchdog.ino b/examples/SimpleWatchdog/SimpleWatchdog.ino index 4aa46fd..a893457 100644 --- a/examples/SimpleWatchdog/SimpleWatchdog.ino +++ b/examples/SimpleWatchdog/SimpleWatchdog.ino @@ -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() { diff --git a/src/CmdMessenger.cpp b/src/CmdMessenger.cpp index c425ee6..4538737 100644 --- a/src/CmdMessenger.cpp +++ b/src/CmdMessenger.cpp @@ -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 @@ -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(); @@ -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; diff --git a/test/embedded/lib/CmdMessenger/CmdMessenger.cpp b/test/embedded/lib/CmdMessenger/CmdMessenger.cpp index 2ecc8fb..c387750 100644 --- a/test/embedded/lib/CmdMessenger/CmdMessenger.cpp +++ b/test/embedded/lib/CmdMessenger/CmdMessenger.cpp @@ -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 @@ -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(); @@ -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;