Skip to content

Conversation

@NanoExplorer
Copy link
Contributor

The struct library can do the short int parsing for us so we don't have to have as many bitwise operations

@ladyada ladyada requested a review from dhalbert August 7, 2022 23:46
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct, and it looks like the original code was off by 1 for negative temperatures as well, and this is not. Thanks!

@dhalbert dhalbert merged commit c16703f into adafruit:main Aug 8, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Aug 8, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP4728 to 1.3.0 from 1.2.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP4728#13 from adafruit/MCP4728A4_update
  > Added Black formatting badge
  > Changed .env to .venv in README.rst

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_LYWSD03MMC to 1.0.9 from 1.0.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_LYWSD03MMC#5 from NanoExplorer/struct_features
  > Changed .env to .venv in README.rst
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

Successfully merging this pull request may close these issues.

2 participants