diff --git a/hidl/powershare/PowerShare.cpp b/hidl/powershare/PowerShare.cpp index 06ba88f..9033e26 100644 --- a/hidl/powershare/PowerShare.cpp +++ b/hidl/powershare/PowerShare.cpp @@ -35,7 +35,8 @@ static T get(const std::string& path, const T& def) { } Return PowerShare::isEnabled() { - return get(WIRELESS_TX_ENABLE_PATH, "disable") != "disable"; + const auto value = get(WIRELESS_TX_ENABLE_PATH, ""); + return !(value == "disable" || value == "0"); } Return PowerShare::setEnabled(bool enable) {