]> git.pld-linux.org Git - packages/colorhug-client.git/blob - 0005-trivial-Fix-thinko-when-ColorHug-1-and-2-are-connect.patch
- imported upstream fixes
[packages/colorhug-client.git] / 0005-trivial-Fix-thinko-when-ColorHug-1-and-2-are-connect.patch
1 From 3f7f81657efc6fe88183ff6b720842852c3d7569 Mon Sep 17 00:00:00 2001
2 From: Richard Hughes <richard@hughsie.com>
3 Date: Wed, 8 Jan 2014 17:47:17 +0000
4 Subject: [PATCH 05/11] trivial: Fix thinko when ColorHug 1 and 2 are connected
5  at the same time
6
7 ---
8  src/ch-spectro-util.c | 3 +--
9  1 file changed, 1 insertion(+), 2 deletions(-)
10
11 diff --git a/src/ch-spectro-util.c b/src/ch-spectro-util.c
12 index 5a559d6..212dd7b 100644
13 --- a/src/ch-spectro-util.c
14 +++ b/src/ch-spectro-util.c
15 @@ -493,8 +493,7 @@ ch_util_device_removed_cb (GUsbDeviceList *list,
16         g_debug ("Removed: %i:%i",
17                  g_usb_device_get_vid (device),
18                  g_usb_device_get_pid (device));
19 -       if (ch_device_get_mode (device) == CH_DEVICE_MODE_FIRMWARE ||
20 -           ch_device_get_mode (device) == CH_DEVICE_MODE_LEGACY) {
21 +       if (ch_device_get_mode (device) == CH_DEVICE_MODE_FIRMWARE_SPECTRO) {
22                 if (priv->device != NULL)
23                         g_object_unref (priv->device);
24                 priv->device = NULL;
25 -- 
26 1.8.4.5
27
This page took 0.087687 seconds and 3 git commands to generate.