Skip to content

Commit

Permalink
Update MAX31865_NonBlocking.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
budulinek committed Nov 9, 2023
1 parent de590b0 commit 825dac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MAX31865_NonBlocking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ void MAX31865::begin(RtdWire wires, FilterFreq filter, ConvMode mode) {
clearFault();
setConfig(0x00);

setBias(true);
setWires(wires);
setFilter(filter);
setConvMode(mode);
Expand Down Expand Up @@ -73,8 +72,10 @@ void MAX31865::setConvMode(ConvMode mode) {
uint8_t t = getConfig();
if (mode == CONV_MODE_CONTINUOUS) {
t |= CONFIG_CONVERSION_MODE_BIT; // enable continuous conversion
t |= CONFIG_VBIAS_BIT; // enable bias
} else {
t &= ~CONFIG_CONVERSION_MODE_BIT; // disable continuous conversion
t &= ~CONFIG_VBIAS_BIT; // disable bias
}
setConfig(t);
}
Expand Down

0 comments on commit 825dac7

Please sign in to comment.