Skip to content

Commit

Permalink
Merge pull request #557 from paulplant/develop
Browse files Browse the repository at this point in the history
5.3.3
  • Loading branch information
JohanDegraeve authored Jul 22, 2024
2 parents 4080dde + b41d293 commit bcf6927
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
18 changes: 0 additions & 18 deletions xdrip/BluetoothTransmitter/CGM/Dexcom/G7/CGMG7Transmitter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,24 +371,6 @@ class CGMG7Transmitter: BluetoothTransmitter, CGMTransmitter {
return CBUUID_Characteristic_UUID.CBUUID_Receive_Authentication.rawValue
}

func setWebOOPEnabled(enabled: Bool) {

if webOOPEnabled != enabled {

webOOPEnabled = enabled

trace("in setWebOOPEnabled, new value for webOOPEnabled = %{public}@", log: log, category: ConstantsLog.categoryCGMG7, type: .info, webOOPEnabled.description)

// reset sensor start date, because changing webOOPEnabled value stops the sensor
sensorStartDate = nil

// as sensor is stopped, also set sensorStatus to nil
cGMG7TransmitterDelegate?.received(sensorStatus: nil, cGMG7Transmitter: self)

}

}

func isWebOOPEnabled() -> Bool {

return webOOPEnabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ class BluetoothPeripheralManager: NSObject {
/// for use with xdrip-client-swift
private func setCGMTransmitterInSharedUserDefaults() {

if let sharedUserDefaults = UserDefaults(suiteName: Bundle.main.appGroupSuiteName) {
if let sharedUserDefaults = UserDefaults(suiteName: UserDefaults.standard.loopShareType.sharedUserDefaultsSuiteName) {

if let cgmTransmitter = getCGMTransmitter(), let cgmtransmitterAddress = currentCgmTransmitterAddress {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,7 @@ final class RootViewController: UIViewController, ObservableObject {

calibrator = DexcomCalibrator()

case .dexcom, .dexcomG7:
case .dexcom:

if cgmTransmitter.isWebOOPEnabled() {

Expand All @@ -2051,6 +2051,11 @@ final class RootViewController: UIViewController, ObservableObject {
calibrator = DexcomCalibrator()

}

case .dexcomG7:

// received values are already calibrated
calibrator = NoCalibrator()


case .miaomiao, .GNSentry, .Blucon, .Bubble, .Droplet1, .blueReader, .watlaa, .Libre2, .Atom:
Expand Down

0 comments on commit bcf6927

Please sign in to comment.