universal7885: parts hidl: Improve readabilty

This commit is contained in:
Soo-Hwan Na 2022-04-13 18:29:31 +09:00 committed by GitHub
commit 6458328df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,11 +27,11 @@ Return<void> DisplayConfigs::writeDisplay(parts::V1_0::Number enable,
} else if (type == Display::GLOVE_MODE) {
writevalue = "glove_mode";
}
writevalue += ",";
if (enable == Number::ENABLE) {
writevalue += ",1";
writevalue += "1";
} else {
writevalue += ",0";
writevalue += "0";
}
file.open("/sys/class/sec/tsp/cmd");
file << writevalue;