Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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