Compare commits
5 commits
master
...
benzea/mis
Author | SHA1 | Date | |
---|---|---|---|
|
788fd9ca7a | ||
|
8c5eede914 | ||
|
07c8481bf6 | ||
|
d435fc7c2c | ||
|
dc3b5e52ac |
7 changed files with 15 additions and 6 deletions
|
@ -197,9 +197,6 @@ on_list_completed (FpDevice *dev,
|
|||
list_data->ret_value = EXIT_SUCCESS;
|
||||
else
|
||||
g_warning ("Invalid finger selected");
|
||||
|
||||
fp_device_close (dev, NULL, (GAsyncReadyCallback) on_device_closed,
|
||||
list_data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -321,6 +321,8 @@ elan_submit_image (FpImageDevice *dev)
|
|||
fpi_do_movement_estimation (&assembling_ctx, frames);
|
||||
img = fpi_assemble_frames (&assembling_ctx, frames);
|
||||
|
||||
g_slist_free_full (frames, g_free);
|
||||
|
||||
fpi_image_device_image_captured (dev, img);
|
||||
}
|
||||
|
||||
|
|
|
@ -969,10 +969,10 @@ dev_probe (FpDevice *device)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!g_usb_device_reset (fpi_device_get_usb_device (device), &error))
|
||||
if (!g_usb_device_reset (usb_dev, &error))
|
||||
goto err_close;
|
||||
|
||||
if (!g_usb_device_claim_interface (fpi_device_get_usb_device (device), 0, 0, &error))
|
||||
if (!g_usb_device_claim_interface (usb_dev, 0, 0, &error))
|
||||
goto err_close;
|
||||
|
||||
/* TODO: Do not do this synchronous. */
|
||||
|
|
|
@ -205,7 +205,7 @@ libnbis = static_library('nbis',
|
|||
install: false)
|
||||
|
||||
libfprint_private = static_library('fprint-private',
|
||||
sources: libfprint_private_sources + fpi_enums,
|
||||
sources: libfprint_private_sources + fpi_enums + [ fp_enums_h ],
|
||||
dependencies: deps,
|
||||
link_with: libnbis,
|
||||
install: false)
|
||||
|
|
|
@ -17,6 +17,7 @@ c.enumerate()
|
|||
devices = c.get_devices()
|
||||
|
||||
d = devices[0]
|
||||
del devices
|
||||
|
||||
d.open_sync()
|
||||
|
||||
|
@ -24,6 +25,9 @@ img = d.capture_sync(True)
|
|||
|
||||
d.close_sync()
|
||||
|
||||
del d
|
||||
del c
|
||||
|
||||
width = img.get_width()
|
||||
height = img.get_height()
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ c.enumerate()
|
|||
devices = c.get_devices()
|
||||
|
||||
d = devices[0]
|
||||
del devices
|
||||
|
||||
assert d.get_driver() == "synaptics"
|
||||
|
||||
|
@ -40,3 +41,6 @@ print("deleting")
|
|||
d.delete_print_sync(p)
|
||||
print("delete done")
|
||||
d.close_sync()
|
||||
|
||||
del d
|
||||
del c
|
||||
|
|
|
@ -83,6 +83,8 @@ class VirtualImage(unittest.TestCase):
|
|||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
shutil.rmtree(cls.tmpdir)
|
||||
del cls.dev
|
||||
del cls.ctx
|
||||
|
||||
def setUp(self):
|
||||
self.dev.open_sync()
|
||||
|
|
Loading…
Reference in a new issue