Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wollewald authored Nov 14, 2024
1 parent ae46459 commit dcec77c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ADS1115_WE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ void ADS1115_WE::setSingleChannel(size_t channel) {

bool ADS1115_WE::isBusy(){
uint16_t currentConfReg = readRegister(ADS1115_CONFIG_REG);
return (!(currentConfReg>>15) & 1);
if(deviceMeasureMode == ADS1115_SINGLE){
return (!(currentConfReg>>15) & 1);
}
else return 0;
}


Expand Down

0 comments on commit dcec77c

Please sign in to comment.