suppress share cgm transmitter address with loop
if 'Suppress Loop Share' is enabled. This is fix is only required if there's multiple instances of xDrip4iOS running on one device and if Loop is used
This commit is contained in:
parent
f50dbdbe28
commit
36c2756ca7
|
@ -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()
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue