mirror of
https://github.com/esphome/esphome.git
synced 2025-07-31 07:36:35 +00:00
missed existing helper
This commit is contained in:
parent
e223a1008b
commit
bcdfc744c6
@ -68,7 +68,7 @@ static const LogString *color_mode_to_human(ColorMode color_mode) {
|
|||||||
|
|
||||||
// Helper to log percentage values
|
// Helper to log percentage values
|
||||||
#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_DEBUG
|
#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_DEBUG
|
||||||
static inline void log_percent(const char *name, const char *param, float value) {
|
static void log_percent(const char *name, const char *param, float value) {
|
||||||
ESP_LOGD(TAG, " %s: %.0f%%", param, value * 100.0f);
|
ESP_LOGD(TAG, " %s: %.0f%%", param, value * 100.0f);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user