Skip to content

Commit

Permalink
Update Adafruit_MAX31865.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHardt committed Sep 14, 2020
1 parent c6bbf44 commit 69d70f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Adafruit_MAX31865.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ void Adafruit_MAX31865::autoConvert(bool b) {
/**************************************************************************/

void Adafruit_MAX31865::enable50Hz(bool b) {
uint8_t t = readRegister8(MAX31856_CONFIG_REG);
uint8_t t = readRegister8(MAX31865_CONFIG_REG);
if (b) {
t |= MAX31856_CONFIG_FILT50HZ;
t |= MAX31865_CONFIG_FILT50HZ;
} else {
t &= ~MAX31856_CONFIG_FILT50HZ;
t &= ~MAX31865_CONFIG_FILT50HZ;
}
writeRegister8(MAX31856_CONFIG_REG, t);
writeRegister8(MAX31865_CONFIG_REG, t);
}

/**************************************************************************/
Expand Down

0 comments on commit 69d70f4

Please sign in to comment.