adafruit / Adafruit_Si7021

Arduino library for Adafruit Si7021
34 stars 28 forks source link

Update Adafruit_Si7021.cpp #26

Closed angusgbishop closed 2 years ago

angusgbishop commented 2 years ago

Corrected serial number storage location.

Previously only sernum_a was valid as both upper and lower parts of the serial number were being written to sernum_a. This left sernum_b as initialized.

This could break code as previously sernum_a contained sernum_b content

This pull request aims to align with expected intent of sernum_a and sernum_b.

Alternativley, changing line 166 to sernum_b would keep existing code functional.