Skip to content

Commit 498c087

Browse files
Nicla_System: fix warning by removing unused variable (#552)
I removed the char "response" in the method readByte as it was unused and it would just give a compiler warning
1 parent b18ad7a commit 498c087

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/Nicla_System/src/pmic_driver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ uint8_t BQ25120A::readByte(uint8_t address, uint8_t subAddress)
2525
{
2626
digitalWrite(p25, HIGH);
2727
nicla::i2c_mutex.lock();
28-
char response = 0xFF;
2928
Wire1.beginTransmission(address);
3029
Wire1.write(subAddress);
3130
Wire1.endTransmission(false);
@@ -37,4 +36,4 @@ uint8_t BQ25120A::readByte(uint8_t address, uint8_t subAddress)
3736
nicla::i2c_mutex.unlock();
3837
digitalWrite(p25, LOW);
3938
return ret;
40-
}
39+
}

0 commit comments

Comments
 (0)