From 9291711cb7478b31344d4808a0a41efa9ba30201 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 26 Feb 2022 21:01:09 +0100 Subject: [PATCH] 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 --- hidl/powershare/PowerShare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hidl/powershare/PowerShare.cpp b/hidl/powershare/PowerShare.cpp index 9033e26..08bcc58 100644 --- a/hidl/powershare/PowerShare.cpp +++ b/hidl/powershare/PowerShare.cpp @@ -35,7 +35,7 @@ static T get(const std::string& path, const T& def) { } Return PowerShare::isEnabled() { - const auto value = get(WIRELESS_TX_ENABLE_PATH, ""); + const auto value = get(WIRELESS_TX_ENABLE_PATH, "0"); return !(value == "disable" || value == "0"); }