From fc5c6f403b4965b4a162d5c3161d3372a2a8af40 Mon Sep 17 00:00:00 2001 From: felmue Date: Sun, 13 Oct 2024 21:57:23 +0200 Subject: [PATCH] Fix gas resistance reading --- m5stack/libs/driver/bme68x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m5stack/libs/driver/bme68x.py b/m5stack/libs/driver/bme68x.py index f29ada1b..2567b5f0 100644 --- a/m5stack/libs/driver/bme68x.py +++ b/m5stack/libs/driver/bme68x.py @@ -560,7 +560,7 @@ def _read_field_data(self, index) -> BME68xData: if self._variant_id == 0x01: gas_resistance = self.calc_gas_resistance_high(adc_gas_res_high, gas_range_h) else: - gas_resistance = self.calc_gas_resistance_high(adc_gas_res_low, gas_range_l) + gas_resistance = self.calc_gas_resistance_low(adc_gas_res_low, gas_range_l) self._sensor_data[0].status = status self._sensor_data[0].gas_index = gas_index