Fix log message

This commit is contained in:
Edward Firmo
2023-10-13 22:46:10 +02:00
parent d9325787a0
commit d89aa90d12

View File

@@ -2621,6 +2621,7 @@ script:
#elif defined(ESP_PLATFORM) // esp-idf # To do: Move to Nextion component on ESPHome
auto upload_by_chunks_esp_idf = [&](const std::string &url, int range_start) -> int
{
static const char *const TAG = "script.upload_tft.upload_by_chunks_esp_idf";
int range_end;
if (range_start == 0 && transfer_buffer_size_ > 16384) {
@@ -2718,8 +2719,8 @@ script:
return range_end + 1;
};
auto upload_tft_ = [&](const std::string &url, unsigned int update_baud_rate_) -> bool
{
auto upload_tft_ = [&](const std::string &url, unsigned int update_baud_rate_) -> bool {
static const char *const TAG = "script.upload_tft.upload_tft_esp_idf";
ESP_LOGD(TAG, "Nextion TFT upload requested");
ESP_LOGD(TAG, "url: %s", url.c_str());
ESP_LOGD(TAG, "baud_rate: %i", update_baud_rate_);