Skip to content

Commit

Permalink
Merge pull request #21 from fnevgeny/master
Browse files Browse the repository at this point in the history
Fix infinite self recursion in setThreshold()
  • Loading branch information
porrey authored Jul 14, 2023
2 parents 8751ea1 + 62b3c40 commit f9004c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MAX1704X.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void MAX1704X::threshold(uint8_t threshold)
//
void MAX1704X::setThreshold(uint8_t threshold)
{
this->setThreshold(threshold);
this->threshold(threshold);
}

uint8_t MAX1704X::thresholdToConfig(uint8_t threshold)
Expand Down

0 comments on commit f9004c8

Please sign in to comment.