awsiuk / ENS160

ENS160 library for micropython
3 stars 2 forks source link

unsupported operand type(s) for &: 'float' and 'int' #5

Open pstaubs opened 1 week ago

pstaubs commented 1 week ago
File "myENS160.py", line 68, in calibrate_temp
TypeError: unsupported types for __and__: 'float', 'int'

_temp=(_temp + 273.15) * 64 should probably be cast as int explicitly.