From 8af80f0a9d288860c47bb36547edebcb848dd692 Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Thu, 21 Sep 2023 09:14:55 +0200 Subject: [PATCH] :zap: (LekaUpdater): Adjust delay before scan --- .../Sources/ViewModel/RobotConnectionViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apps/LekaUpdater/Sources/ViewModel/RobotConnectionViewModel.swift b/Apps/LekaUpdater/Sources/ViewModel/RobotConnectionViewModel.swift index bda1eec801..c66b0656fd 100644 --- a/Apps/LekaUpdater/Sources/ViewModel/RobotConnectionViewModel.swift +++ b/Apps/LekaUpdater/Sources/ViewModel/RobotConnectionViewModel.swift @@ -48,7 +48,7 @@ public class RobotConnectionViewModel: ObservableObject { public func onAppear() { globalBleManager.disconnect() - DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { + DispatchQueue.main.asyncAfter(deadline: .now() + 1) { self.scanForRobots() } }