summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ADS1115_WE.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ADS1115_WE.cpp b/src/ADS1115_WE.cpp
index 1741dc5..91740c3 100644
--- a/src/ADS1115_WE.cpp
+++ b/src/ADS1115_WE.cpp
@@ -31,7 +31,7 @@ void ADS1115_WE::reset(){
bool ADS1115_WE::init(){
Wire.beginTransmission(i2cAddress);
- uint8_t success = Wire.endTransmission();
+ uint8_t success = Wire.endTransmission();
if(success){
return 0;
}
@@ -192,7 +192,7 @@ uint8_t ADS1115_WE::writeRegister(uint8_t reg, uint16_t val){
}
uint16_t ADS1115_WE::readRegister(uint8_t reg){
- uint8_t MSByte, LSByte = 0;
+ uint8_t MSByte = 0, LSByte = 0;
uint16_t regValue = 0;
Wire.beginTransmission(i2cAddress);
Wire.write(reg);