Commit 0ff09b4c authored by Thomas Mellenthin's avatar Thomas Mellenthin

Fix tabbar controller not being notified

parent 3df740de
......@@ -39,7 +39,7 @@ struct RGBLED {
}
}
struct FoundPeripheral: Hashable {
public struct FoundPeripheral: Hashable {
let peripheral: CBPeripheral
let advertisementName: String?
let rssi: Int?
......
......@@ -36,7 +36,7 @@ public class Card10TabBarController: UITabBarController, UITabBarControllerDeleg
extension Card10TabBarController {
public func didConnectToPeripheal(_ peripheral: CBPeripheral?) {
public func didConnectToPeripheal(_ peripheral: FoundPeripheral?) {
// show and select connected VC
self.viewControllers = allViewControllers
selectedViewController = allViewControllers?.filter { $0 is ConnectedViewController }.first
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment