Skip to content

0.1.3

Latest

Choose a tag to compare

@int08h int08h released this 24 Dec 22:30

v0.1.3

  • Replaced manual bit manipulation with idiomatic u16::from_le_bytes() and i16::from_le_bytes() for register conversions
  • Fixed off-by-one error in signed current read: The milliamps field in BatteryState was incorrectly calculated due to a sign conversion error. Values like -1 mA were returned as 0, and -32768 mA as -32767. The battery current is now correctly interpreted as a signed 16-bit integer.