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:
parent
7168cbff7f
commit
9291711cb7
@ -35,7 +35,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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user