mirror of
https://github.com/esphome/esphome.git
synced 2024-09-21 03:12:12 +02:00
Lint
This commit is contained in:
parent
cf8609f070
commit
36c35767eb
@ -322,7 +322,7 @@ bool Nextion::upload_tft(uint32_t baud_rate, bool exit_reparse) {
|
|||||||
this->tft_size_ = content_range_string.toInt();
|
this->tft_size_ = content_range_string.toInt();
|
||||||
#else // ESP-IDF
|
#else // ESP-IDF
|
||||||
this->tft_size_ = esp_http_client_get_content_length(http_client);
|
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_);
|
ESP_LOGD(TAG, "TFT file size: %zu bytes", this->tft_size_);
|
||||||
if (this->tft_size_ < 4096) {
|
if (this->tft_size_ < 4096) {
|
||||||
@ -483,5 +483,4 @@ WiFiClient *Nextion::get_wifi_client_() {
|
|||||||
} // namespace nextion
|
} // namespace nextion
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
|
||||||
|
|
||||||
#endif // USE_NEXTION_TFT_UPLOAD
|
#endif // USE_NEXTION_TFT_UPLOAD
|
||||||
|
Loading…
Reference in New Issue
Block a user