Skip to content

Commit

Permalink
make sure disconnect signals are handled when we are falling back on …
Browse files Browse the repository at this point in the history
…less accurate cable detection

Signed-off-by: Philippe De Swert <philippedeswert@gmail.com>
  • Loading branch information
philippedeswert committed Jul 21, 2011
1 parent 45df807 commit 022260b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usb_moded-udev.c
Expand Up @@ -176,6 +176,7 @@ static void udev_parse(struct udev_device *dev)
to discriminate between charger/cable */
log_warning("Fallback since cable detection cannot be accurate. Will connect on any voltage on usb.\n");
set_usb_connected(TRUE);
cable = 1;
return;
}
if(!strcmp(tmp, "USB")||!strcmp(tmp, "USB_CDP"))
Expand Down

0 comments on commit 022260b

Please sign in to comment.