Closed davea closed 6 years ago
Drat! Good catch, thank you! I need to watch out for any other instances of this. Although heater duration doesn't share the issue. I'll have to put out a new release of this today.
Happy to help, thanks for the cool stuff you folks put out! 👍
When running the
examples/read-all.py
script I was seeing a crash because the value passed towrite_i2c_block_data
wasn't being converted to an int:This commit ensures
set_gas_heater_temperature
converts the temperature to an int before it's passed toself._set_regs
.