Skip to content

Commit 6318507

Browse files
committed
Fix for issue 7
1 parent 0d5f9c9 commit 6318507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFunCCS811.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ CCS811Core::status CCS811Core::beginCore(void)
103103
CCS811Core::status CCS811Core::readRegister(uint8_t offset, uint8_t* outputPointer)
104104
{
105105
//Return value
106-
uint8_t result;
106+
uint8_t result = 1;
107107
uint8_t numBytes = 1;
108108
CCS811Core::status returnError = SENSOR_SUCCESS;
109109
Wire.beginTransmission(I2CAddress);

0 commit comments

Comments
 (0)