From 9ee64c729dd737864afec3ef6e3a69ac1e71222d Mon Sep 17 00:00:00 2001 From: PoTa Date: Tue, 13 Apr 2021 12:49:54 +0200 Subject: [PATCH] Fixing DevicePropertyCharacteristic.pressure missing resolution when converting to Data. --- nRFMeshProvision/Classes/Mesh Messages/DeviceProperty.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nRFMeshProvision/Classes/Mesh Messages/DeviceProperty.swift b/nRFMeshProvision/Classes/Mesh Messages/DeviceProperty.swift index e3c1ce4de..e5d29bef1 100644 --- a/nRFMeshProvision/Classes/Mesh Messages/DeviceProperty.swift +++ b/nRFMeshProvision/Classes/Mesh Messages/DeviceProperty.swift @@ -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):