Skip to content

Commit

Permalink
Merge pull request #97 from trvrnrth/main
Browse files Browse the repository at this point in the history
Fix percent logging
  • Loading branch information
lubeda authored Oct 6, 2023
2 parents 096756d + 49d33a4 commit 04218b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ehmtxv2/EHMTX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ namespace esphome
}
}
this->display_gauge = true;
ESP_LOGD(TAG, "show_gauge 2 color %d", round(percent));
ESP_LOGD(TAG, "show_gauge 2 color %d", percent);
}
}
#else
Expand All @@ -278,7 +278,7 @@ namespace esphome
this->display_gauge = true;
this->gauge_value = (uint8_t)(100 - percent) * 7 / 100;
}
ESP_LOGD(TAG, "show_gauge 2 color %d", round(percent));
ESP_LOGD(TAG, "show_gauge 2 color %d", percent);
}
#endif

Expand Down

0 comments on commit 04218b6

Please sign in to comment.