Skip to content

Commit

Permalink
Merge pull request #34 from uutzinger/main
Browse files Browse the repository at this point in the history
byte uint8_t issue for ESP8266 version 3
  • Loading branch information
nseidle authored Jul 5, 2022
2 parents 19636f4 + 22e1745 commit 3c7e54a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/SparkFun_SCD30_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ bool SCD30::readMeasurement()
bool error = false;
if (_i2cPort->available())
{
byte bytesToCrc[2];
for (byte x = 0; x < 18; x++)
uint8_t bytesToCrc[2];
for (uint8_t x = 0; x < 18; x++)
{
byte incoming = _i2cPort->read();
uint8_t incoming = _i2cPort->read();

switch (x)
{
Expand Down
2 changes: 1 addition & 1 deletion src/SparkFun_SCD30_Arduino_Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

typedef union
{
byte array[4];
uint8_t array[4];
float value;
} ByteToFl; // paulvha

Expand Down

0 comments on commit 3c7e54a

Please sign in to comment.