Usb.cpp: Fix typos when unable to disable USB data
If Usb.cpp cannot write a zero value to the USB_DATA_PATH file, display the message of "Not able to turn off usb connection notification". Test: refactoring CL. Existing tests still pass. Bug: 301016122 Change-Id: I4e2a920a67b022496c5332d260ff53cd6400a9f9
This commit is contained in:
parent
ac11a6cebd
commit
20d7a3bcc3
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ ScopedAStatus Usb::enableUsbData(const string& in_portName, bool in_enable,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!WriteStringToFile("0", USB_DATA_PATH)) {
|
if (!WriteStringToFile("0", USB_DATA_PATH)) {
|
||||||
ALOGE("Not able to turn on usb connection notification");
|
ALOGE("Not able to turn off usb connection notification");
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue