Skip to content

Commit

Permalink
Improved Efficiency
Browse files Browse the repository at this point in the history
Reduced delay when waiting for measurement in accordance with max conversion time identified on datasheet.  Reduced delay from 100ms to 23ms.
  • Loading branch information
Sam Wizer committed Jul 18, 2018
1 parent b1dd474 commit 01d447a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ uint16_t Weather::makeMeasurment(uint8_t command)
// When not using clock stretching (*_NOHOLD commands) delay here
// is needed to wait for the measurement.
// According to datasheet the max. conversion time is ~22ms
delay(100);
delay(23);

Wire.requestFrom(ADDRESS,nBytes);
if(Wire.available() != nBytes)
Expand Down

0 comments on commit 01d447a

Please sign in to comment.