Skip to content

Commit af3452f

Browse files
authored
Correct misspells (#1028)
1 parent 1feae06 commit af3452f

20 files changed

+60
-60
lines changed

MyConfig.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
* @def MY_SERIAL_OUTPUT_SIZE
159159
* @brief Maximum characters for serial output.
160160
*
161-
* If you are running extreamely low on memory, reducing this size might just save your day.
161+
* If you are running extremely low on memory, reducing this size might just save your day.
162162
*/
163163
#ifndef MY_SERIAL_OUTPUT_SIZE
164164
#define MY_SERIAL_OUTPUT_SIZE (120u)
@@ -394,7 +394,7 @@
394394

395395
/**
396396
* @def MY_RF24_DATARATE
397-
* @brief RF24 datarate.
397+
* @brief RF24 data rate.
398398
*
399399
* - RF24_250KBPS for 250kbs
400400
* - RF24_1MBPS for 1Mbps
@@ -633,7 +633,7 @@
633633

634634
/**
635635
* @def MY_RFM69_TX_POWER_DBM
636-
* @brief Set TX power level, default 5dBm (overriden if ATC mode enabled).
636+
* @brief Set TX power level, default 5dBm (overridden if ATC mode enabled).
637637
*/
638638
#ifndef MY_RFM69_TX_POWER_DBM
639639
#define MY_RFM69_TX_POWER_DBM (5)
@@ -895,7 +895,7 @@
895895

896896
/**
897897
* @def MY_RFM95_TX_POWER_DBM
898-
* @brief Set TX power level, default 13dBm (overriden if ATC mode enabled)
898+
* @brief Set TX power level, default 13dBm (overridden if ATC mode enabled)
899899
*
900900
* See here https://en.wikipedia.org/wiki/Short_Range_Devices
901901
*/
@@ -1506,7 +1506,7 @@
15061506
* with the regular software and ATSHA204A based modes.
15071507
*
15081508
* If the provided password is shorter than the size of the HMAC or %AES key, it will be null-padded
1509-
* to accomodate the key size in question. A 32 character password is the maximum length. Any
1509+
* to accommodate the key size in question. A 32 character password is the maximum length. Any
15101510
* password longer than that will be truncated.
15111511
*/
15121512
//#define MY_SIGNING_SIMPLE_PASSWD "MyInsecurePassword"
@@ -1546,7 +1546,7 @@
15461546
* requirements.
15471547
*
15481548
* Use this for evaluating security. It allows for gradual introduction of signing requirements in
1549-
* a network. Nodes that present themselves as not requiering signing or whitelisting will be
1549+
* a network. Nodes that present themselves as not requiring signing or whitelisting will be
15501550
* cleared of this requirement at the receiving end. A gateway which require signatures will only do
15511551
* so from nodes that in turn require signatures.
15521552
*
@@ -1626,7 +1626,7 @@
16261626
/** @}*/ // End of SigningSettingGrpPub group
16271627

16281628
/**
1629-
* @defgroup MyLockgrppub Node locknig
1629+
* @defgroup MyLockgrppub Node locking
16301630
* @ingroup MyConfig
16311631
* @brief These options control node lock related configurations.
16321632
*
@@ -1639,7 +1639,7 @@
16391639
* message to the gateway/controller with 30 minute intervals. Payload is a string with a reason for
16401640
* the locking.
16411641
*
1642-
* The string is abbreviated to accomodate a signature. The following abbreviations exist at the
1642+
* The string is abbreviated to accommodate a signature. The following abbreviations exist at the
16431643
* moment:
16441644
* - LDB (Locked During Boot)
16451645
* - TMNR (Too Many Nonce Requests)
@@ -1668,7 +1668,7 @@
16681668

16691669
/**
16701670
* @def MY_NODE_UNLOCK_PIN
1671-
* @brief By grounding this pin durig reset of a locked node, the node will unlock.
1671+
* @brief By grounding this pin during reset of a locked node, the node will unlock.
16721672
*
16731673
* If using a secure bootloader, grounding the pin is the only option to reactivate the node.
16741674
* If using stock Android bootloader or a DualOptiBoot it is also possible to download a sketch
@@ -1680,9 +1680,9 @@
16801680

16811681
/**
16821682
* @def MY_NODE_LOCK_COUNTER_MAX
1683-
* @brief Maximum accepted occurances of suspected malicious activity in a node.
1683+
* @brief Maximum accepted occurrences of suspected malicious activity in a node.
16841684
*
1685-
* Counter decrements on reoccuring incidents but resets if legitimate behaviour is identified.
1685+
* Counter decrements on reoccurring incidents but resets if legitimate behaviour is identified.
16861686
*/
16871687
#ifndef MY_NODE_LOCK_COUNTER_MAX
16881688
#define MY_NODE_LOCK_COUNTER_MAX (5)
@@ -1782,7 +1782,7 @@
17821782
#define MY_NODE_TYPE "REPEATER"
17831783
#elif defined(DOXYGEN)
17841784
#define MY_IS_GATEWAY //!< true when configuration indicate a gateway device, @todo Mark these internals
1785-
#define MY_NODE_TYPE //!< "GW" for wateways, REPEATER" for repeaters, "NODE" for nodes, @todo Mark these internals
1785+
#define MY_NODE_TYPE //!< "GW" for gateways, REPEATER" for repeaters, "NODE" for nodes, @todo Mark these internals
17861786
#else
17871787
#define MY_IS_GATEWAY (false)
17881788
#define MY_NODE_TYPE "NODE"

core/MyEepromAddresses.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#define EEPROM_SIGNING_SOFT_SERIAL_ADDRESS (EEPROM_SIGNING_SOFT_HMAC_KEY_ADDRESS + SIZE_SIGNING_SOFT_HMAC_KEY)
8383
/** @brief Address RF AES encryption key. This is set with @ref SecurityPersonalizer.ino */
8484
#define EEPROM_RF_ENCRYPTION_AES_KEY_ADDRESS (EEPROM_SIGNING_SOFT_SERIAL_ADDRESS + SIZE_SIGNING_SOFT_SERIAL)
85-
/** @brief Address node lock couner. This is set with @ref SecurityPersonalizer.ino */
85+
/** @brief Address node lock counter. This is set with @ref SecurityPersonalizer.ino */
8686
#define EEPROM_NODE_LOCK_COUNTER (EEPROM_RF_ENCRYPTION_AES_KEY_ADDRESS + SIZE_RF_ENCRYPTION_AES_KEY)
8787
/** @brief First free address for sketch static configuration */
8888
#define EEPROM_LOCAL_CONFIG_ADDRESS (EEPROM_NODE_LOCK_COUNTER + SIZE_NODE_LOCK_COUNTER)

core/MyGatewayTransportEthernet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ void gatewayTransportRenewIP(void)
450450
0 - nothing happened
451451
1 - renew failed
452452
2 - renew success
453-
3 - rebinf failed
453+
3 - rebind failed
454454
4 - rebind success
455455
*/
456456
static unsigned long next_time = hwMillis() + MY_IP_RENEWAL_INTERVAL_MS;
@@ -462,7 +462,7 @@ void gatewayTransportRenewIP(void)
462462
}
463463
if (Ethernet.maintain() & ~(0x06)) {
464464
GATEWAY_DEBUG(PSTR("!GWT:TRC:IP RENEW FAIL\n"));
465-
/* Error occured -> IP was not renewed */
465+
/* Error occurred -> IP was not renewed */
466466
return;
467467
}
468468
_w5100_spi_en(false);

core/MyIndication.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ typedef enum {
3434
INDICATION_GOT_PARENT, //!< Found parent node.
3535
INDICATION_REQ_NODEID, //!< Request node ID.
3636
INDICATION_GOT_NODEID, //!< Got a node ID.
37-
INDICATION_CHECK_UPLINK, //!< Check uplink
37+
INDICATION_CHECK_UPLINK, //!< Check uplink
3838
INDICATION_REQ_REGISTRATION, //!< Request node registration.
39-
INDICATION_GOT_REGISTRATION, //!< Got registration reponse.
39+
INDICATION_GOT_REGISTRATION, //!< Got registration response.
4040
INDICATION_REBOOT, //!< Rebooting node.
4141
INDICATION_PRESENT, //!< Presenting node to gateway.
4242
INDICATION_CLEAR_ROUTING, //!< Clear routing table requested.
@@ -47,15 +47,15 @@ typedef enum {
4747
INDICATION_FW_UPDATE_RX_ERR, //!< Received wrong piece of firmware data.
4848

4949
INDICATION_ERR_START = 100,
50-
INDICATION_ERR_HW_INIT, //!< HW initialization error
50+
INDICATION_ERR_HW_INIT, //!< HW initialization error
5151
INDICATION_ERR_TX, //!< Failed to transmit message.
52-
INDICATION_ERR_TRANSPORT_FAILURE, //!< Transport failure.
52+
INDICATION_ERR_TRANSPORT_FAILURE, //!< Transport failure.
5353
INDICATION_ERR_INIT_TRANSPORT, //!< MySensors transport hardware (radio) init failure.
5454
INDICATION_ERR_FIND_PARENT, //!< Failed to find parent node.
5555
INDICATION_ERR_GET_NODEID, //!< Failed to receive node ID.
5656
INDICATION_ERR_CHECK_UPLINK, //!< Failed to check uplink
5757
INDICATION_ERR_SIGN, //!< Error signing.
58-
INDICATION_ERR_LENGTH, //!< Invalid message length.
58+
INDICATION_ERR_LENGTH, //!< Invalid message length.
5959
INDICATION_ERR_VERSION, //!< Protocol version mismatch.
6060
INDICATION_ERR_NET_FULL, //!< Network full. All node ID's are taken.
6161
INDICATION_ERR_INIT_GWTRANSPORT, //!< Gateway transport hardware init failure.

core/MyLeds.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ inline void ledsInit()
4646
hwPinMode(MY_DEFAULT_ERR_LED_PIN, OUTPUT);
4747
#endif
4848
prevTime = hwMillis() -
49-
LED_PROCESS_INTERVAL_MS; // Substract some, to make sure leds gets updated on first run.
49+
LED_PROCESS_INTERVAL_MS; // Subtract some, to make sure leds gets updated on first run.
5050
ledsProcess();
5151
}
5252

core/MyMessage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ typedef enum {
238238
#define mGetVersion(_message) ((uint8_t)BF_GET(_message.version_length, 0, 2)) //!< Get version field
239239

240240
#define mSetSigned(_message,_signed) BF_SET(_message.version_length, _signed, 2, 1) //!< Set signed field
241-
#define mGetSigned(_message) ((bool)BF_GET(_message.version_length, 2, 1)) //!< Get versignedsion field
241+
#define mGetSigned(_message) ((bool)BF_GET(_message.version_length, 2, 1)) //!< Get signed field
242242

243243
#define mSetLength(_message,_length) BF_SET(_message.version_length, _length, 3, 5) //!< Set length field
244244
#define mGetLength(_message) ((uint8_t)BF_GET(_message.version_length, 3, 5)) //!< Get length field
@@ -352,7 +352,7 @@ typedef union {
352352
// 5 bit - Length of payload
353353
uint8_t command_ack_payload; // 3 bit - Command type
354354
// 1 bit - Request an ack - Indicator that receiver should send an ack back.
355-
// 1 bit - Is ack messsage - Indicator that this is the actual ack message.
355+
// 1 bit - Is ack message - Indicator that this is the actual ack message.
356356
// 3 bit - Payload data type
357357
uint8_t type; // 8 bit - Type varies depending on command
358358
uint8_t sensor; // 8 bit - Id of sensor that this message concerns.

core/MyOTALogging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* You will see the hwMillis() of the receiving node. After each \n character, a
4747
* new debug message line starts. Incomplete messages are ending with '...'
4848
*
49-
* @param logNode Testination node ID
49+
* @param logNode Destination node ID
5050
* @param enableAck Enable or disable ACK flag
5151
* @param fmt printf format string
5252
* @param ... arguments

core/MyProtocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// returns true if successfully parsed the input string
2929
bool protocolParse(MyMessage &message, char *inputString);
3030

31-
// Format MyMessage to the protocol represenataion
31+
// Format MyMessage to the protocol representation
3232
char *protocolFormat(MyMessage &message);
3333

3434
#endif

core/MyProtocolMySensors.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ bool protocolParse(MyMessage &message, char *inputString)
4141
str = strtok_r(NULL, ";", &p) // get subsequent tokens
4242
) {
4343
switch (i) {
44-
case 0: // Radioid (destination)
44+
case 0: // Radio id (destination)
4545
message.destination = atoi(str);
4646
break;
47-
case 1: // Childid
47+
case 1: // Child id
4848
message.sensor = atoi(str);
4949
break;
5050
case 2: // Message type

core/MySensorsCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ bool _processInternalMessages(void)
465465
// sender is a node
466466
if (type == I_REGISTRATION_REQUEST) {
467467
#if defined(MY_GATEWAY_FEATURE)
468-
// registeration requests are exclusively handled by GW/Controller
468+
// registration requests are exclusively handled by GW/Controller
469469
#if !defined(MY_REGISTRATION_CONTROLLER)
470470
bool approveRegistration;
471471

@@ -730,7 +730,7 @@ void _checkNodeLock(void)
730730
_nodeLock("LDB"); //Locked during boot
731731
}
732732
} else if (hwReadConfig(EEPROM_NODE_LOCK_COUNTER) == 0xFF) {
733-
// Reset walue
733+
// Reset value
734734
hwWriteConfig(EEPROM_NODE_LOCK_COUNTER, MY_NODE_LOCK_COUNTER_MAX);
735735
}
736736
#endif

0 commit comments

Comments
 (0)