From 8d8915c0d764e7692ae8d8aca05567e75cefc978 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Sep 2012 17:41:29 +0530 Subject: [PATCH] ... --- src/calibre/devices/interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/interface.py b/src/calibre/devices/interface.py index d0b2611ead..2af6b63e3a 100644 --- a/src/calibre/devices/interface.py +++ b/src/calibre/devices/interface.py @@ -215,7 +215,9 @@ class DevicePlugin(Plugin): Scan for devices that this driver can handle. Should return a device object if a device is found. This object will be passed to the open() - method as the connected_device. If no device is found, return None. + method as the connected_device. If no device is found, return None. The + returned object can be anything, calibre does not use it, it is only + passed to open(). This method is called periodically by the GUI, so make sure it is not too resource intensive. Use a cache to avoid repeatedly scanning the