1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2024-12-22 22:54:29 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
Phil Howard
288daed781 Version 1.0.3 prep 2017-11-23 11:25:34 +00:00
Geoff Lee
26a28bfde7 Fix reassignment of variable in pressure calculation algo 2017-11-21 21:16:27 +00:00
Dave Arter
3e4bf56802 Fix Python 3 TypeError crashes by using floor division explicitly
The / operator in Python 3 returns a float, which was causing TypeErrors
when being passed to the << or >> operators.
2017-11-19 17:10:27 +00:00
Phil Howard
d9970151cd Fixes from upstream BME680_driver 3.5.3 2017-11-17 11:29:48 +00:00
Phil Howard
7bc7ef693b Prep for version 1.0.2 2017-10-19 12:21:16 +01:00
Dave Arter
35b26a1529 Ensure set_gas_heater_temperature calls _set_regs with int
When running the `examples/read-all.py` script I was seeing a crash because
the value passed to `write_i2c_block_data` wasn't being converted to an int:

```
  File "/home/pi/tmp/bme680/library/bme680/__init__.py", line 281, in _set_regs
    self._i2c.write_i2c_block_data(self.i2c_addr, register, value)
TypeError: Third argument must be a list of at least one, but not more than 32 integers
```

This commit ensures `set_gas_heater_temperature` converts the temperature to an int
before it's passed to `self._set_regs`.
2017-10-18 13:10:17 +01:00
Phil Howard
9b18ecf446 Fixed Manifest 2017-10-17 16:02:29 +01:00
Phil Howard
16853dc4f2 Added packaging, dropped copy of C code 2017-10-17 15:09:19 +01:00