mirror of
https://github.com/esphome/esphome.git
synced 2025-10-18 17:53:47 +01:00
[core] Centralize component setup logging to reduce flash usage (#9885)
This commit is contained in:
@@ -6,7 +6,6 @@ namespace esphome {
|
||||
namespace sdl {
|
||||
|
||||
void Sdl::setup() {
|
||||
ESP_LOGD(TAG, "Starting setup");
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
this->window_ = SDL_CreateWindow(App.get_name().c_str(), this->pos_x_, this->pos_y_, this->width_, this->height_,
|
||||
this->window_options_);
|
||||
@@ -15,7 +14,6 @@ void Sdl::setup() {
|
||||
this->texture_ =
|
||||
SDL_CreateTexture(this->renderer_, SDL_PIXELFORMAT_RGB565, SDL_TEXTUREACCESS_STATIC, this->width_, this->height_);
|
||||
SDL_SetTextureBlendMode(this->texture_, SDL_BLENDMODE_BLEND);
|
||||
ESP_LOGD(TAG, "Setup Complete");
|
||||
}
|
||||
void Sdl::update() {
|
||||
this->do_update_();
|
||||
|
Reference in New Issue
Block a user