This commit is contained in:
Edward Firmo 2024-05-02 15:57:27 +02:00
parent cf8609f070
commit 36c35767eb

View File

@ -322,7 +322,7 @@ bool Nextion::upload_tft(uint32_t baud_rate, bool exit_reparse) {
this->tft_size_ = content_range_string.toInt();
#else // ESP-IDF
this->tft_size_ = esp_http_client_get_content_length(http_client);
#endif
#endif // ARDUINO vs ESP-IDF
ESP_LOGD(TAG, "TFT file size: %zu bytes", this->tft_size_);
if (this->tft_size_ < 4096) {
@ -483,5 +483,4 @@ WiFiClient *Nextion::get_wifi_client_() {
} // namespace nextion
} // namespace esphome
#endif // USE_NEXTION_TFT_UPLOAD