[shtcx] Combine log statements to reduce loop blocking (#12960)
This commit is contained in:
1 parent
1d0f36ba35
commit
4bc1a02fc2
1 file changed
+4
-2
@@ -49,8 +49,10 @@ void SHTCXComponent::setup() {
|
||||
}
|
||||
|
||||
void SHTCXComponent::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "SHTCx:");
|
||||
ESP_LOGCONFIG(TAG, " Model: %s (%04x)", to_string(this->type_), this->sensor_id_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"SHTCx:\n"
|
||||
" Model: %s (%04x)",
|
||||
to_string(this->type_), this->sensor_id_);
|
||||
LOG_I2C_DEVICE(this);
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
|
||||
Reference in new issue
Block a user