summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2022-02-26 21:01:09 +0100
committerSemavi Ulusoy <doc.divxm@gmail.com>2022-03-01 22:33:06 +0300
commit76f9c147cc05f734d1af5dc204e84c4420e5189d (patch)
tree3608d48eeb1a30ee00b8db3cf9a3808890b0979a
parent443d17e7202fd7bc1f1b3d7926cbaa66894d4d5d (diff)
powershare: Change fallback enable value to 0
Some variants don't support wireless charging, thus this file is missing. Ideally we wouldn't run powershare at all on them, but this is still an improvement. Change-Id: Ie58aaac2a73055d8d2cfe7a73b9b479493eb2bcf
-rw-r--r--hidl/powershare/PowerShare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hidl/powershare/PowerShare.cpp b/hidl/powershare/PowerShare.cpp
index eb7f370..32a7e87 100644
--- a/hidl/powershare/PowerShare.cpp
+++ b/hidl/powershare/PowerShare.cpp
@@ -45,7 +45,7 @@ static T get(const std::string& path, const T& def) {
}
Return<bool> PowerShare::isEnabled() {
- const auto value = get<std::string>(WIRELESS_TX_ENABLE_PATH, "");
+ const auto value = get<std::string>(WIRELESS_TX_ENABLE_PATH, "0");
return !(value == "disable" || value == "0");
}