From 619382a71a119f68094f8645cf649d4f521ef8e2 Mon Sep 17 00:00:00 2001 From: Guido Soranzio <7220550+gui-dos@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:11:36 +0200 Subject: [PATCH] Fix scanning the Lingo serial number --- DiaBLE Playground.swiftpm/Sensor.swift | 2 +- DiaBLE.xcconfig | 2 +- DiaBLE/Sensor.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DiaBLE Playground.swiftpm/Sensor.swift b/DiaBLE Playground.swiftpm/Sensor.swift index 6202ca4..2b0b1cf 100644 --- a/DiaBLE Playground.swiftpm/Sensor.swift +++ b/DiaBLE Playground.swiftpm/Sensor.swift @@ -114,7 +114,7 @@ enum SensorState: UInt8, CustomStringConvertible { var uid: SensorUid = Data() { willSet(uid) { - if type != .libre3 { + if type != .libre3 && type != .lingo { serial = serialNumber(uid: uid, family: self.family) } } diff --git a/DiaBLE.xcconfig b/DiaBLE.xcconfig index 026034c..5755e5e 100644 --- a/DiaBLE.xcconfig +++ b/DiaBLE.xcconfig @@ -5,5 +5,5 @@ APP_GROUP_ID = group.com.$(DEVELOPMENT_TEAM).DiaBLE // Comment out all the following lines in DiaBLEOverride.xcconfig MARKETING_VERSION = 0.0.1 -CURRENT_PROJECT_VERSION = 118 +CURRENT_PROJECT_VERSION = 119 #include? "DiaBLEOverride.xcconfig" diff --git a/DiaBLE/Sensor.swift b/DiaBLE/Sensor.swift index 6202ca4..2b0b1cf 100644 --- a/DiaBLE/Sensor.swift +++ b/DiaBLE/Sensor.swift @@ -114,7 +114,7 @@ enum SensorState: UInt8, CustomStringConvertible { var uid: SensorUid = Data() { willSet(uid) { - if type != .libre3 { + if type != .libre3 && type != .lingo { serial = serialNumber(uid: uid, family: self.family) } }