mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
[core] Centralize component setup logging to reduce flash usage (#9885)
This commit is contained in:
@@ -26,7 +26,6 @@ static const size_t MAX_BUTTONS = 4; // max number of buttons scanned
|
||||
|
||||
void GT911Touchscreen::setup() {
|
||||
i2c::ErrorCode err;
|
||||
ESP_LOGCONFIG(TAG, "Running setup");
|
||||
if (this->reset_pin_ != nullptr) {
|
||||
this->reset_pin_->setup();
|
||||
this->reset_pin_->digital_write(false);
|
||||
@@ -83,8 +82,6 @@ void GT911Touchscreen::setup() {
|
||||
if (err != i2c::ERROR_OK) {
|
||||
this->mark_failed("Failed to communicate");
|
||||
}
|
||||
|
||||
ESP_LOGCONFIG(TAG, "GT911 Touchscreen setup complete");
|
||||
}
|
||||
|
||||
void GT911Touchscreen::update_touches() {
|
||||
|
||||
Reference in New Issue
Block a user