Skip to content

Commit 3047bbc

Browse files
committed
Correct: debug message; and convertHexToASCII
1 parent f26c893 commit 3047bbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SparkFun_SCD4x_Arduino_Library.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bool SCD4x::begin(TwoWire &wirePort, bool measBegin, bool autoCalibrate, bool sk
5252

5353
if (_printDebug == true)
5454
{
55-
_debugPort->print(F("SCD30::begin: got serial number 0x"));
55+
_debugPort->print(F("SCD40::begin: got serial number 0x"));
5656
_debugPort->println(serialNumber);
5757
}
5858

@@ -762,7 +762,7 @@ char SCD4x::convertHexToASCII(uint8_t digit)
762762
if (digit <= 9)
763763
return (char(digit + 0x30));
764764
else
765-
return (char(digit + 0x41)); // Use upper case for A-F
765+
return (char(digit + 0x41 - 10)); // Use upper case for A-F
766766
}
767767

768768
//Perform self test. Takes 10 seconds to complete. See 3.9.3

0 commit comments

Comments
 (0)