From ee2830b68fbbb23fef3d975fa48c7646ad2abaf4 Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Fri, 10 Jan 2020 18:37:12 +0900 Subject: [PATCH] Fix bug. use "and" operation(&) instead of "or" operation(|) Change-Id: I09107adac1b695294de3b4196b7173f69bc1c85c (cherry picked from commit 43bbe64b8453dc6c93da3a756219dd23a6a9a9e3) --- src/usb/usb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/usb/usb.c b/src/usb/usb.c index 367aa21..b11b825 100644 --- a/src/usb/usb.c +++ b/src/usb/usb.c @@ -412,13 +412,13 @@ static void uevent_usb_mode_handler(struct udev_device *dev) _I("usb_mode udev event happend : CONFIGURED"); - if (usb_state_get_selected_mode() | USB_FUNCTION_ACM) + if (usb_state_get_selected_mode() & USB_FUNCTION_ACM) systemd_start_unit_wait_started ("data-router.service", NULL, -1); - if (usb_state_get_selected_mode() | USB_FUNCTION_SDB) + if (usb_state_get_selected_mode() & USB_FUNCTION_SDB) systemd_start_unit_wait_started ("sdbd.service", NULL, -1); - if (usb_state_get_selected_mode() | USB_FUNCTION_MTP) + if (usb_state_get_selected_mode() & USB_FUNCTION_MTP) systemd_start_unit_wait_started ("mtp-responder.service", NULL, -1); } -- 2.7.4