Skip to content

Commit d65a48a

Browse files
authored
[LOOP-4492] sent device actions to only the identified device (#559)
1 parent b07f825 commit d65a48a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Loop/Managers/TestingScenariosManager.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,12 @@ extension TestingScenariosManagerRequirements {
233233
}
234234
}
235235

236-
instance.injectedActions.forEach { [testingCGMManager, testingPumpManager] action in
237-
testingCGMManager?.inject(action: action)
238-
testingPumpManager?.inject(action: action)
236+
instance.deviceActions.forEach { [testingCGMManager, testingPumpManager] action in
237+
if testingCGMManager?.managerIdentifier == action.managerIdentifier {
238+
testingCGMManager?.trigger(action: action)
239+
} else if testingPumpManager?.managerIdentifier == action.managerIdentifier {
240+
testingPumpManager?.trigger(action: action)
241+
}
239242
}
240243
}
241244

0 commit comments

Comments
 (0)