diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2020-07-22 20:16:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 20:16:59 +0200 |
commit | cf9f05d5c5458414147f76b3d3320c9513c0b703 (patch) | |
tree | a0b21deb9b0a11dce8f87fc1d7679d438a2a0497 /src/ADS1115_WE.cpp | |
parent | Update library.properties (diff) | |
download | ADS1115_WE-cf9f05d5c5458414147f76b3d3320c9513c0b703.tar ADS1115_WE-cf9f05d5c5458414147f76b3d3320c9513c0b703.tar.gz ADS1115_WE-cf9f05d5c5458414147f76b3d3320c9513c0b703.tar.bz2 ADS1115_WE-cf9f05d5c5458414147f76b3d3320c9513c0b703.tar.lz ADS1115_WE-cf9f05d5c5458414147f76b3d3320c9513c0b703.tar.xz ADS1115_WE-cf9f05d5c5458414147f76b3d3320c9513c0b703.tar.zst ADS1115_WE-cf9f05d5c5458414147f76b3d3320c9513c0b703.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ADS1115_WE.cpp | 4 |
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);
|