Skip to content

Commit

Permalink
fix #82, minimal timeout 10 ms for RTOS
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Oct 17, 2024
1 parent 4ff8350 commit 775ac76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ADS1X15.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ int16_t ADS1X15::_readADC(uint16_t readmode)
{
if ( (millis() - start) > timeOut)
{
_error = ADS1X15_ERROR_TIMEOUT;
return ADS1X15_ERROR_TIMEOUT;
}
yield(); // wait for conversion; yield for ESP.
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.5.1] - 2024-10-17
- fix #82, minimal timeout 10 ms for RTOS
- set error flag for TIMEOUT

## [0.5.0] - 2024-08-20
- Fix #80, setComparatorPolarity() and setComparatorLatch() inverting.
Expand Down

0 comments on commit 775ac76

Please sign in to comment.