From cfaa79adbd9e7a56692d315fb815f0037b2b288a Mon Sep 17 00:00:00 2001 From: lbuque <1102390310@qq.com> Date: Mon, 11 Mar 2024 11:53:55 +0800 Subject: [PATCH 1/2] docs: PDF format output is not supported. Signed-off-by: lbuque <1102390310@qq.com> --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index e59cde9f..5a0df762 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -20,7 +20,7 @@ build: # configuration: docs/conf.py # Optionally build your docs in additional formats such as PDF and ePub -formats: all +# formats: all # Optional but recommended, declare the Python requirements required # to build your documentation From 4dd6d8ec173869cc101a2ce6fdc895632b40ef5a Mon Sep 17 00:00:00 2001 From: felmue Date: Sun, 13 Oct 2024 21:32:00 +0200 Subject: [PATCH 2/2] Fix gas resistance reading There is a report in the M5Stack community forum that ENVPro unit fails to report gas resistance. Apparently the returned number alwas is 0.0. So I looked into the source code and it looks like there might be a copy paste error here. Please note: I do not have the ENVPro unit myself so I cannot test this. It's just a hunch that this might be the issue. --- 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