Skip to content

Commit

Permalink
Update Single_Shot.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
wollewald authored Nov 3, 2024
1 parent abd14d8 commit 7ca8402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Single_Shot/Single_Shot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ float readChannel(ADS1115_MUX channel) {
float voltage = 0.0;
adc.setCompareChannels(channel);
adc.startSingleMeasurement();
while(adc.isBusy()){}
while(adc.isBusy()){delay(0);}
voltage = adc.getResult_V(); // alternative: getResult_mV for Millivolt
return voltage;
}

0 comments on commit 7ca8402

Please sign in to comment.