Skip to content

Commit

Permalink
Set shouldBeScanning based on user requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinmobstac committed Nov 2, 2018
1 parent 6b60931 commit 2860e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EddystoneScanner/Scanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import CoreBluetooth
///
@objc public func startScanning() {
guard centralManager.state == .poweredOn else {
self.shouldBeScanning = true
debugPrint("CentralManager state is %d, cannot start scan", self.centralManager.state.rawValue)
return
}
Expand Down

0 comments on commit 2860e2c

Please sign in to comment.