File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public struct GATTBloodPressureMeasurement: GATTCharacteristic {
9292 guard data. count >= Self . length
9393 else { return nil }
9494
95- let flags = BitMaskOptionSet < Flag > ( rawValue: data [ 0 ] )
95+ let flags = Flag ( rawValue: data [ 0 ] )
9696
9797 let unit : Unit = flags. contains ( . bloodPressureUnits) ? . kPa : . mmHg
9898 let systolic = SFloat ( bitPattern: UInt16 ( littleEndian: UInt16 ( bytes: ( data [ 1 ] , data [ 2 ] ) ) ) )
@@ -156,7 +156,7 @@ public struct GATTBloodPressureMeasurement: GATTCharacteristic {
156156 guard index + MemoryLayout < MeasurementStatus . RawValue > . size < data. count
157157 else { return nil }
158158
159- self . measurementStatus = BitMaskOptionSet < MeasurementStatus > ( rawValue: UInt16 ( littleEndian: UInt16 ( bytes: ( data [ index + 1 ] , data [ index + 2 ] ) ) ) )
159+ self . measurementStatus = MeasurementStatus ( rawValue: UInt16 ( littleEndian: UInt16 ( bytes: ( data [ index + 1 ] , data [ index + 2 ] ) ) ) )
160160
161161 index += MemoryLayout< MeasurementStatus . RawValue> . size
162162
You can’t perform that action at this time.
0 commit comments