Skip to content

Commit 5e79a37

Browse files
authored
Merge pull request #791 from Monstertov/fix-typos
Spelling and grammar corrections in project files
2 parents 114aa7a + 68db034 commit 5e79a37

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/Wippersnapper.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void Wippersnapper::_disconnect() {
176176

177177
/****************************************************************************/
178178
/*!
179-
@brief Sets the network interface's unique identifer, typically the
179+
@brief Sets the network interface's unique identifier, typically the
180180
MAC address.
181181
*/
182182
/****************************************************************************/
@@ -256,7 +256,7 @@ bool Wippersnapper::check_valid_ssid() {
256256
/*!
257257
@brief Configures the device's Adafruit IO credentials. This method
258258
should be used only if filesystem-backed provisioning is
259-
not avaliable.
259+
not available.
260260
*/
261261
/****************************************************************************/
262262
void Wippersnapper::set_user_key() {
@@ -493,7 +493,7 @@ bool cbSignalMsg(pb_istream_t *stream, const pb_field_t *field, void **arg) {
493493
/**************************************************************************/
494494
/*!
495495
@brief Decodes a signal buffer protobuf message.
496-
NOTE: Should be executed in-order after a new _buffer is recieved.
496+
NOTE: Should be executed in-order after a new _buffer is received.
497497
@param encodedSignalMsg
498498
Encoded signal message.
499499
@return true if successfully decoded signal message, false otherwise.
@@ -1089,7 +1089,7 @@ bool cbDecodeServoMsg(pb_istream_t *stream, const pb_field_t *field,
10891089

10901090
/**************************************************************************/
10911091
/*!
1092-
@brief Called when the device recieves a new message from the
1092+
@brief Called when the device receives a new message from the
10931093
/servo/ topic.
10941094
@param data
10951095
Incoming data from MQTT broker.
@@ -1215,7 +1215,7 @@ bool cbPWMDecodeMsg(pb_istream_t *stream, const pb_field_t *field, void **arg) {
12151215
#endif
12161216
return false; // fail out if we can't decode the request
12171217
}
1218-
// execute PWM pin detatch request
1218+
// execute PWM pin detach request
12191219
char *pwmPin = msgPWMDetachRequest.pin + 1;
12201220
WS._pwmComponent->detach(atoi(pwmPin));
12211221

@@ -1298,7 +1298,7 @@ bool cbPWMDecodeMsg(pb_istream_t *stream, const pb_field_t *field, void **arg) {
12981298

12991299
/**************************************************************************/
13001300
/*!
1301-
@brief Called when the device recieves a new message from the
1301+
@brief Called when the device receives a new message from the
13021302
/pwm/ topic.
13031303
@param data
13041304
Incoming data from MQTT broker.
@@ -1501,7 +1501,7 @@ bool cbDecodePixelsMsg(pb_istream_t *stream, const pb_field_t *field,
15011501

15021502
/**************************************************************************/
15031503
/*!
1504-
@brief Called when the device recieves a new message from the
1504+
@brief Called when the device receives a new message from the
15051505
/pixels/ topic.
15061506
@param data
15071507
Incoming data from MQTT broker.
@@ -2736,7 +2736,7 @@ void print_reset_reason(int reason) {
27362736
break; /**<13, RTC Watch dog Reset CPU*/
27372737
case 14:
27382738
WS_DEBUG_PRINTLN("EXT_CPU_RESET");
2739-
break; /**<14, for APP CPU, reseted by PRO CPU*/
2739+
break; /**<14, for APP CPU, reset by PRO CPU*/
27402740
case 15:
27412741
WS_DEBUG_PRINTLN("RTCWDT_BROWN_OUT_RESET");
27422742
break; /**<15, Reset when the vdd voltage is not stable*/
@@ -2796,7 +2796,7 @@ void Wippersnapper::connect() {
27962796
haltError("Unable to generate Device UID");
27972797
}
27982798

2799-
// Initialize MQTT client with device identifer
2799+
// Initialize MQTT client with device identifier
28002800
setupMQTTClient(_device_uid);
28012801

28022802
WS_DEBUG_PRINTLN("Generating device's MQTT topics...");

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ WipperSnapper_Component_I2C::scanAddresses() {
181181
continue;
182182
} else if (endTransmissionRC == 4) {
183183
WS_DEBUG_PRINTLN(
184-
"[i2c] Did not find device: Unspecified bus error occured!");
184+
"[i2c] Did not find device: Unspecified bus error occurred!");
185185
continue;
186186
} else if (endTransmissionRC == 5) {
187187
WS_DEBUG_PRINTLN("[i2c] Did not find device: Bus timed out!");
188188
continue;
189189
} else {
190190
WS_DEBUG_PRINTLN(
191-
"[i2c] Did not find device: Unknown bus error has occured!");
191+
"[i2c] Did not find device: Unknown bus error has occurred!");
192192
continue;
193193
}
194194
#endif
@@ -1307,7 +1307,7 @@ void WipperSnapper_Component_I2C::update() {
13071307

13081308
std::vector<WipperSnapper_I2C_Driver *>::iterator iter, end;
13091309
for (iter = drivers.begin(), end = drivers.end(); iter != end; ++iter) {
1310-
// Number of events which occured for this driver
1310+
// Number of events which occurred for this driver
13111311
msgi2cResponse.payload.resp_i2c_device_event.sensor_event_count = 0;
13121312

13131313
// Event struct - zero-initialise on each iteration

src/components/register/Wippersnapper_Register.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ bool Wippersnapper::encodePubRegistrationReq() {
5555
if (!_status)
5656
return _status;
5757

58-
// pubish message
58+
// publish message
5959
WS.publish(WS._topic_description, _message_buffer, _message_len, 1);
6060
WS_DEBUG_PRINTLN("Published!");
6161
WS._boardStatus = WS_BOARD_DEF_SENT;

src/components/servo/ws_servo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool ws_servo::servo_attach(int pin, int minPulseWidth, int maxPulseWidth,
7272
#ifdef ARDUINO_ARCH_ESP32
7373
rc = servo->attach(pin, minPulseWidth, maxPulseWidth, freq);
7474
#else
75-
(void)freq; // supress warning when we don't use the frequency parameter
75+
(void)freq; // suppress warning when we don't use the frequency parameter
7676
rc = servo->attach(pin, minPulseWidth, maxPulseWidth);
7777
#endif
7878
if (rc == ERR_SERVO_ATTACH)

0 commit comments

Comments
 (0)