Skip to content

Commit

Permalink
Use WinixStateMap alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mill1000 committed Nov 7, 2023
1 parent f3d3781 commit d8f5f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/winix_c545/winix_c545.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ void WinixC545Fan::update_state(const WinixStateMap &states) {
}

void WinixC545Fan::control(const fan::FanCall &call) {
std::map<const std::string, uint16_t> states;
WinixStateMap states;

if (call.get_state().has_value() && this->state != *call.get_state()) {
// State has changed
Expand All @@ -406,7 +406,7 @@ void WinixC545Fan::control(const fan::FanCall &call) {
}

void WinixC545Switch::write_state(bool state) {
std::map<const std::string, uint16_t> states;
WinixStateMap states;

if (state != this->state) {
// State has changed
Expand Down

0 comments on commit d8f5f24

Please sign in to comment.