Use macro YESNO to standardize True/False messages

This commit is contained in:
Edward Firmo
2024-02-02 08:53:51 +01:00
parent b94461b39f
commit 52e3dd174c
3 changed files with 10 additions and 10 deletions

View File

@@ -327,7 +327,7 @@ script:
ESP_LOGD(TAG, " Target upload baud rate: %d bps", id(baud_rate_target));
ESP_LOGD(TAG, " Current baud rate: %" PRIu32 " bps", tf_uart->get_baud_rate());
ESP_LOGD(TAG, " Valid TFT: %s", id(tft_is_valid) ? "True" : "False");
ESP_LOGD(TAG, " Valid TFT: %s", YESNO(id(tft_is_valid)));
// Upload URL
ESP_LOGD(TAG, " Upload URL: %s", url.c_str());
@@ -646,7 +646,7 @@ script:
auto upload_end_ = [&](bool completed) -> bool
{
static const char *const TAG = "script.upload_tft.upload_end_";
ESP_LOGD(TAG, "Completed: %s", completed ? "True" : "False");
ESP_LOGD(TAG, "Completed: %s", YESNO(completed));
//ESP_LOGD(TAG, "Restarting Nextion");
//send_nextion_command("rest");
#ifdef ARDUINO