[tmp102] Remove setup(), optimize logging (#8937)
This commit is contained in:
1 parent
51981335d5
commit
cfa8b3b272
2 files changed
+1
-6
No files matched your search
@@ -15,13 +15,11 @@ static const uint8_t TMP102_REGISTER_HIGH_LIMIT = 0x03;
|
||||
|
||||
static const float TMP102_CONVERSION_FACTOR = 0.0625;
|
||||
|
||||
void TMP102Component::setup() { ESP_LOGCONFIG(TAG, "Running setup"); }
|
||||
|
||||
void TMP102Component::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "TMP102:");
|
||||
LOG_I2C_DEVICE(this);
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, "Communication with TMP102 failed!");
|
||||
ESP_LOGE(TAG, "Communication failed");
|
||||
}
|
||||
LOG_UPDATE_INTERVAL(this);
|
||||
LOG_SENSOR(" ", "Temperature", this);
|
||||
|
||||
Reference in new issue
Block a user