Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in get_sensor_data (after running for some time) #36

Open
aubourg opened this issue Feb 24, 2021 · 0 comments
Open

Error in get_sensor_data (after running for some time) #36

aubourg opened this issue Feb 24, 2021 · 0 comments

Comments

@aubourg
Copy link

aubourg commented Feb 24, 2021

After running ok for some time, I get the following exception

    sensor.get_sensor_data()
  File "build/bdist.linux-armv7l/egg/bme680/__init__.py", line 264, in get_sensor_data
    self.set_power_mode(constants.FORCED_MODE)
  File "build/bdist.linux-armv7l/egg/bme680/__init__.py", line 248, in set_power_mode
    self._set_bits(constants.CONF_T_P_MODE_ADDR, constants.MODE_MSK, constants.MODE_POS, value)
  File "build/bdist.linux-armv7l/egg/bme680/__init__.py", line 307, in _set_bits
    self._set_regs(register, temp)
  File "build/bdist.linux-armv7l/egg/bme680/__init__.py", line 314, 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

and the sensor fails all the time after this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant