Ryan Duffy

fix issue with timeout for scans

@@ -226,7 +226,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, @@ -226,7 +226,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
226 let speed: Int = (call.arguments as! Dictionary<String, Any?>)["speed"] as? Int ?? 0 226 let speed: Int = (call.arguments as! Dictionary<String, Any?>)["speed"] as? Int ?? 0
227 let timeoutMs: Int = (call.arguments as! Dictionary<String, Any?>)["timeout"] as? Int ?? 0 227 let timeoutMs: Int = (call.arguments as! Dictionary<String, Any?>)["timeout"] as? Int ?? 0
228 228
229 - timeoutSeconds = Double(timeoutMs) * 1000.0 229 + timeoutSeconds = Double(timeoutMs) / 1000.0
230 detectionSpeed = DetectionSpeed(rawValue: speed)! 230 detectionSpeed = DetectionSpeed(rawValue: speed)!
231 231
232 // Set the camera to use 232 // Set the camera to use