fix(battery): change comparison expr. to assignment

This commit is contained in:
Jørgen Bele Reinfjell 2019-05-15 19:14:29 +02:00
parent 22bf0b161a
commit 380fc58f3c

View File

@ -95,7 +95,7 @@ const std::tuple<uint8_t, uint32_t, std::string> waybar::modules::Battery::getIn
}
uint16_t capacity = total / batteries_.size();
if (status == "Charging" && total_current != 0) {
status == "Plugged";
status = "Plugged";
}
return {capacity, total_current, status};
} catch (const std::exception& e) {