Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9077d704 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Check if usb is connected before usb_diag_write()



Check if usb is connected before writing to USB so
that there is no race condition  between usb_connected
variable update when usb is disconnected and
the time when we actually read the usb_connected variable.

Change-Id: I19135b0f7d1eb70e0aaa2be3beb62408aded34c2
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent f94bee71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment