Skip to content

Commit 8863492

Browse files
authored
Merge pull request #1 from davea/patch-1
Ensure set_gas_heater_temperature calls _set_regs with int
2 parents 44208f5 + 35b26a1 commit 8863492

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/bme680/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def set_gas_heater_temperature(self, value, nb_profile=0):
182182
raise ValueError("Profile '{}' should be between {} and {}".format(nb_profile, NBCONV_MIN, NBCONV_MAX))
183183

184184
self.gas_settings.heatr_temp = value
185-
temp = self._calc_heater_resistance(self.gas_settings.heatr_temp)
185+
temp = int(self._calc_heater_resistance(self.gas_settings.heatr_temp))
186186
self._set_regs(RES_HEAT0_ADDR + nb_profile, temp)
187187

188188
def set_gas_heater_duration(self, value, nb_profile=0):

0 commit comments

Comments
 (0)