mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
universal7885: parts hidl: Improve readabilty
This commit is contained in:
parent
7a9bbf0e14
commit
6458328df5
1 changed files with 3 additions and 3 deletions
|
|
@ -27,11 +27,11 @@ Return<void> DisplayConfigs::writeDisplay(parts::V1_0::Number enable,
|
||||||
} else if (type == Display::GLOVE_MODE) {
|
} else if (type == Display::GLOVE_MODE) {
|
||||||
writevalue = "glove_mode";
|
writevalue = "glove_mode";
|
||||||
}
|
}
|
||||||
|
writevalue += ",";
|
||||||
if (enable == Number::ENABLE) {
|
if (enable == Number::ENABLE) {
|
||||||
writevalue += ",1";
|
writevalue += "1";
|
||||||
} else {
|
} else {
|
||||||
writevalue += ",0";
|
writevalue += "0";
|
||||||
}
|
}
|
||||||
file.open("/sys/class/sec/tsp/cmd");
|
file.open("/sys/class/sec/tsp/cmd");
|
||||||
file << writevalue;
|
file << writevalue;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue