diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2021-09-03 16:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 16:27:55 +0200 |
commit | 2cde3f5d673fdd2b3ce9503d6350313624442cb1 (patch) | |
tree | d148aa5a58785457a28f2fce94ed08d6891f4760 /src | |
parent | Merge pull request #23 from thijstriemstra/patch-2 (diff) | |
download | ADS1115_WE-2cde3f5d673fdd2b3ce9503d6350313624442cb1.tar ADS1115_WE-2cde3f5d673fdd2b3ce9503d6350313624442cb1.tar.gz ADS1115_WE-2cde3f5d673fdd2b3ce9503d6350313624442cb1.tar.bz2 ADS1115_WE-2cde3f5d673fdd2b3ce9503d6350313624442cb1.tar.lz ADS1115_WE-2cde3f5d673fdd2b3ce9503d6350313624442cb1.tar.xz ADS1115_WE-2cde3f5d673fdd2b3ce9503d6350313624442cb1.tar.zst ADS1115_WE-2cde3f5d673fdd2b3ce9503d6350313624442cb1.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/ADS1115_WE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ADS1115_WE.cpp b/src/ADS1115_WE.cpp index 823948a..e8fb677 100644 --- a/src/ADS1115_WE.cpp +++ b/src/ADS1115_WE.cpp @@ -336,7 +336,7 @@ uint16_t ADS1115_WE::readRegister(uint8_t reg){ uint16_t regValue = 0;
_wire->beginTransmission(i2cAddress);
_wire->write(reg);
- _wire->endTransmission();
+ _wire->endTransmission(false);
_wire->requestFrom(i2cAddress,2);
if(_wire->available()){
MSByte = _wire->read();
|