Skip to content

Not working on small int boards #3

@caternuson

Description

@caternuson

Trinket M0 for example:

Adafruit CircuitPython 5.3.1 on 2020-07-13; Adafruit Trinket M0 with samd21e18
>>> import board
>>> from adafruit_ms8607 import MS8607
>>> sensor = MS8607(board.I2C())
>>> sensor.pressure
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_ms8607.py", line 313, in pressure
  File "adafruit_ms8607.py", line 190, in pressure_and_temperature
  File "adafruit_ms8607.py", line 199, in _scale_temp_pressure
OverflowError: small int overflow
>>> 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions