Skip to content

Commit

Permalink
Fixing DevicePropertyCharacteristic.pressure missing resolution when …
Browse files Browse the repository at this point in the history
…converting to Data.
  • Loading branch information
eLod committed Apr 13, 2021
1 parent c1bdfe9 commit 9ee64c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ internal extension DevicePropertyCharacteristic {

// Float as UInt32:
case .pressure(let value):
return value.toData(ofLength: 4, withRange: 0...Decimal(UInt32.max))
return value.toData(ofLength: 4, withRange: 0...Decimal(UInt32.max), withResolution: 0.1)

// UInt32 with 0xFFFFFFFF as unknown:
case .timeSecond32(let value):
Expand Down

0 comments on commit 9ee64c7

Please sign in to comment.