From 825dac789a5030b29551ecf62e02106538515013 Mon Sep 17 00:00:00 2001 From: budulinek Date: Thu, 9 Nov 2023 20:55:53 +0100 Subject: [PATCH] Update MAX31865_NonBlocking.cpp --- MAX31865_NonBlocking.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAX31865_NonBlocking.cpp b/MAX31865_NonBlocking.cpp index 5d1903f..3d81900 100644 --- a/MAX31865_NonBlocking.cpp +++ b/MAX31865_NonBlocking.cpp @@ -33,7 +33,6 @@ void MAX31865::begin(RtdWire wires, FilterFreq filter, ConvMode mode) { clearFault(); setConfig(0x00); - setBias(true); setWires(wires); setFilter(filter); setConvMode(mode); @@ -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); }