mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 05:33:53 +00:00
Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
@@ -47,14 +47,17 @@ void TMP1075Sensor::dump_config() {
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
return;
|
||||
}
|
||||
ESP_LOGCONFIG(TAG, " limit low : %.4f °C", alert_limit_low_);
|
||||
ESP_LOGCONFIG(TAG, " limit high : %.4f °C", alert_limit_high_);
|
||||
ESP_LOGCONFIG(TAG, " oneshot : %d", config_.fields.oneshot);
|
||||
ESP_LOGCONFIG(TAG, " rate : %d", config_.fields.rate);
|
||||
ESP_LOGCONFIG(TAG, " fault_count: %d", config_.fields.faults);
|
||||
ESP_LOGCONFIG(TAG, " polarity : %d", config_.fields.polarity);
|
||||
ESP_LOGCONFIG(TAG, " alert_mode : %d", config_.fields.alert_mode);
|
||||
ESP_LOGCONFIG(TAG, " shutdown : %d", config_.fields.shutdown);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
" limit low : %.4f °C\n"
|
||||
" limit high : %.4f °C\n"
|
||||
" oneshot : %d\n"
|
||||
" rate : %d\n"
|
||||
" fault_count: %d\n"
|
||||
" polarity : %d\n"
|
||||
" alert_mode : %d\n"
|
||||
" shutdown : %d",
|
||||
alert_limit_low_, alert_limit_high_, config_.fields.oneshot, config_.fields.rate, config_.fields.faults,
|
||||
config_.fields.polarity, config_.fields.alert_mode, config_.fields.shutdown);
|
||||
}
|
||||
|
||||
void TMP1075Sensor::set_fault_count(const int faults) {
|
||||
|
||||
Reference in New Issue
Block a user