diff --git a/xdrip/Managers/BluetoothPeripheral/BluetoothPeripheralManager.swift b/xdrip/Managers/BluetoothPeripheral/BluetoothPeripheralManager.swift index 4bc83460..89b47147 100644 --- a/xdrip/Managers/BluetoothPeripheral/BluetoothPeripheralManager.swift +++ b/xdrip/Managers/BluetoothPeripheral/BluetoothPeripheralManager.swift @@ -49,8 +49,14 @@ class BluetoothPeripheralManager: NSObject { if newValue != currentCgmTransmitterAddress { cgmTransmitterInfoChanged() + + // share new address with loop, but not if suppressLoopShare is on + if !UserDefaults.standard.suppressLoopShare { + + setCGMTransmitterInSharedUserDefaults() + + } - setCGMTransmitterInSharedUserDefaults() }