Skip to content

Commit 3c7e54a

Browse files
authored
Merge pull request #34 from uutzinger/main
byte uint8_t issue for ESP8266 version 3
2 parents 19636f4 + 22e1745 commit 3c7e54a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SparkFun_SCD30_Arduino_Library.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,10 @@ bool SCD30::readMeasurement()
310310
bool error = false;
311311
if (_i2cPort->available())
312312
{
313-
byte bytesToCrc[2];
314-
for (byte x = 0; x < 18; x++)
313+
uint8_t bytesToCrc[2];
314+
for (uint8_t x = 0; x < 18; x++)
315315
{
316-
byte incoming = _i2cPort->read();
316+
uint8_t incoming = _i2cPort->read();
317317

318318
switch (x)
319319
{

src/SparkFun_SCD30_Arduino_Library.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
typedef union
6161
{
62-
byte array[4];
62+
uint8_t array[4];
6363
float value;
6464
} ByteToFl; // paulvha
6565

0 commit comments

Comments
 (0)