Skip to content

Commit fc5c6f4

Browse files
authored
Fix gas resistance reading
1 parent e4f48d1 commit fc5c6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

m5stack/libs/driver/bme68x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def _read_field_data(self, index) -> BME68xData:
560560
if self._variant_id == 0x01:
561561
gas_resistance = self.calc_gas_resistance_high(adc_gas_res_high, gas_range_h)
562562
else:
563-
gas_resistance = self.calc_gas_resistance_high(adc_gas_res_low, gas_range_l)
563+
gas_resistance = self.calc_gas_resistance_low(adc_gas_res_low, gas_range_l)
564564

565565
self._sensor_data[0].status = status
566566
self._sensor_data[0].gas_index = gas_index

0 commit comments

Comments
 (0)