Skip to content

Commit b0f7fb1

Browse files
authored
Fix spelling (#45)
* Fix spelling Received * Update MHZ19.cpp * Update MHZ19.cpp * Update Recovery.ino * Update MHZ19.h
1 parent cdac62c commit b0f7fb1

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

examples/ErrorCodes/ErrorCodes.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
RESULT_NULL = 0, // This should not occur, and suggests a library logic error
1010
RESULT_OK = 1, // Communication was sucessfull
1111
RESULT_TIMEOUT = 2, // Timed out waiting for a response
12-
RESULT_MATCH = 3, // Recieved data does not match the usual syntax expected
13-
RESULT_CRC = 4, // Recieved data does not match the CRC given
12+
RESULT_MATCH = 3, // Received data does not match the usual syntax expected
13+
RESULT_CRC = 4, // Received data does not match the CRC given
1414
RESULT_FILTER = 5, // Filter was triggered (see FilterUsage example)
1515
RESULT_FAILED = 6 // Not currently used
1616
*/
@@ -50,7 +50,7 @@ void loop()
5050

5151
if(myMHZ19.errorCode == RESULT_OK) // RESULT_OK is an alis for 1. Either can be used to confirm the response was OK.
5252
{
53-
Serial.print("CO2 Value successfully Recieved: ");
53+
Serial.print("CO2 Value successfully Received: ");
5454
Serial.println(CO2);
5555
Serial.print("Response Code: ");
5656
Serial.println(myMHZ19.errorCode); // Get the Error Code value

examples/Recovery/Recovery.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,5 @@ void setRange(int range)
137137
void printErrorCode()
138138
{
139139
Serial.println("Communication error. Error Code: "); // *Print error code using the library variable
140-
Serial.println(myMHZ19.errorCode); // holds the last recieved code
140+
Serial.println(myMHZ19.errorCode); // holds the last received code
141141
}

extras/MHZ19 SC16IS750/MHZ19.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -701,29 +701,29 @@ void MHZ19::printstream(byte inBytes[9], bool isSent, byte pserrorCode)
701701
if (pserrorCode != RESULT_OK && isSent == false)
702702
{
703703
if (this->storage.settings._isDec)
704-
ESP_LOGE(TAG_MHZ19, "Recieved >> %d %d %d %d %d %d %d %d %d ERROR Code: %d",
704+
ESP_LOGE(TAG_MHZ19, "Received >> %d %d %d %d %d %d %d %d %d ERROR Code: %d",
705705
inBytes[0], inBytes[1], inBytes[2], inBytes[3], inBytes[4], inBytes[5], inBytes[6], inBytes[7], inBytes[8],
706706
pserrorCode);
707707
else
708-
ESP_LOGE(TAG_MHZ19, "Recieved >> %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x ERROR Code: %d",
708+
ESP_LOGE(TAG_MHZ19, "Received >> %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x ERROR Code: %d",
709709
inBytes[0], inBytes[1], inBytes[2], inBytes[3], inBytes[4], inBytes[5], inBytes[6], inBytes[7], inBytes[8],
710710
pserrorCode);
711711
}
712712
else
713713
{
714714
if (this->storage.settings._isDec)
715-
ESP_LOGD(TAG_MHZ19, "%s %d %d %d %d %d %d %d %d %d PASS", isSent ? "Sent << " : "Recieved >> ",
715+
ESP_LOGD(TAG_MHZ19, "%s %d %d %d %d %d %d %d %d %d PASS", isSent ? "Sent << " : "Received >> ",
716716
inBytes[0], inBytes[1], inBytes[2], inBytes[3], inBytes[4], inBytes[5], inBytes[6], inBytes[7], inBytes[8]);
717717
else
718718

719-
ESP_LOGD(TAG_MHZ19, "%s %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x PASS", isSent ? "Sent << " : "Recieved >> ",
719+
ESP_LOGD(TAG_MHZ19, "%s %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x %#03x PASS", isSent ? "Sent << " : "Received >> ",
720720
inBytes[0], inBytes[1], inBytes[2], inBytes[3], inBytes[4], inBytes[5], inBytes[6], inBytes[7], inBytes[8]);
721721
}
722722

723723
#elif MHZ19_ERRORS
724724
if (pserrorCode != RESULT_OK && isSent == false)
725725
{
726-
Serial.print("Recieved >> ");
726+
Serial.print("Received >> ");
727727

728728
if (this->storage.settings._isDec)
729729
{
@@ -753,7 +753,7 @@ void MHZ19::printstream(byte inBytes[9], bool isSent, byte pserrorCode)
753753

754754
else
755755
{
756-
isSent ? Serial.print("Sent << ") : Serial.print("Recieved >> ");
756+
isSent ? Serial.print("Sent << ") : Serial.print("Received >> ");
757757

758758
if (this->storage.settings._isDec)
759759
{

src/MHZ19.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ void MHZ19::printstream(byte inBytes[MHZ19_DATA_LEN], bool isSent, byte pserrorC
654654
{
655655
if (pserrorCode != RESULT_OK && isSent == false)
656656
{
657-
Serial.print("Recieved >> ");
657+
Serial.print("Received >> ");
658658
if (this->storage.settings._isDec)
659659
{
660660
Serial.print("DEC: ");
@@ -681,7 +681,7 @@ void MHZ19::printstream(byte inBytes[MHZ19_DATA_LEN], bool isSent, byte pserrorC
681681

682682
else
683683
{
684-
isSent ? Serial.print("Sent << ") : Serial.print("Recieved >> ");
684+
isSent ? Serial.print("Sent << ") : Serial.print("Received >> ");
685685

686686
if (this->storage.settings._isDec)
687687
{

src/MHZ19.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MHZ19
4040
public:
4141
/*###########################-Variables-##########################*/
4242

43-
/* Holds last recieved errorcode from recieveResponse() */
43+
/* Holds last received errorcode from recieveResponse() */
4444
byte errorCode;
4545

4646
/* for keeping track of the ABC run interval */

0 commit comments

Comments
 (0)