Merge pull request #317 from jorgenbele/master

fix(battery): change comparison expr. to assignment
pull/318/head
Alex 2019-05-15 21:02:04 +02:00 committed by GitHub
commit 37f87be9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) {