From ed5d4d024da8c70003e79b00248aac5c8fc653c3 Mon Sep 17 00:00:00 2001 From: taeyoung Date: Mon, 14 Nov 2016 13:57:38 +0900 Subject: [PATCH] usb: fix bitwise operation error - The routine is for checking MTP is enabled. Thus '|' needs to be changed to '&'. Change-Id: I9e41e95cc26cda47b41872d0fe148452555ff034 Signed-off-by: taeyoung --- src/usb/usb-state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb/usb-state.c b/src/usb/usb-state.c index 29f7688..229cb7e 100644 --- a/src/usb/usb-state.c +++ b/src/usb/usb-state.c @@ -188,7 +188,7 @@ void usb_state_update_state(usb_connection_state_e state, unsigned int mode) remove_notification("MediaDeviceNotiOff", noti_id); noti_id = -1; } - } else if (mode | USB_FUNCTION_MTP) { + } else if (mode & USB_FUNCTION_MTP) { if (noti_id < 0) noti_id = add_notification("MediaDeviceNotiOn"); if (noti_id < 0) -- 2.7.4