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
This commit is contained in:
LuK1337 2022-02-26 21:01:09 +01:00 committed by Sebastiano Barezzi
parent 7168cbff7f
commit 9291711cb7
No known key found for this signature in database
GPG Key ID: 47760583F393BC44

View File

@ -35,7 +35,7 @@ static T get(const std::string& path, const T& def) {
} }
Return<bool> PowerShare::isEnabled() { 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"); return !(value == "disable" || value == "0");
} }