Skip to content

Commit

Permalink
2023.9.1: Change Log output for Screen time
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan authored Nov 3, 2023
1 parent 5a840ff commit f2450f3
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions components/ehmtxv2/EHMTX_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,72 +92,72 @@ namespace esphome
ESP_LOGD(TAG, "empty slot");
break;
case MODE_BLANK:
ESP_LOGD(TAG, "queue: blank screen for %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: blank screen for %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_COLOR:
ESP_LOGD(TAG, "queue: color screen for %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: color screen for %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_CLOCK:
ESP_LOGD(TAG, "queue: clock for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: clock for: %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_DATE:
ESP_LOGD(TAG, "queue: date for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: date for: %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_GRAPH_SCREEN:
ESP_LOGD(TAG, "queue: graph for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: graph for: %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_FULL_SCREEN:
ESP_LOGD(TAG, "queue: full screen: \"%s\" for: %d sec", this->icon_name.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: full screen: \"%s\" for: %.1f sec", this->icon_name.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_ICON_SCREEN:
ESP_LOGD(TAG, "queue: icon screen: \"%s\" text: %s for: %d sec", this->icon_name.c_str(), this->text.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: icon screen: \"%s\" text: %s for: %.1f sec", this->icon_name.c_str(), this->text.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_ICON_PROGRESS:
ESP_LOGD(TAG, "queue: icon progress: \"%s\" text: %s for: %d sec", this->icon_name.c_str(), this->text.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: icon progress: \"%s\" text: %s for: %.1f sec", this->icon_name.c_str(), this->text.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_ICON_CLOCK:
ESP_LOGD(TAG, "queue: icon clock: \"%s\" for: %d sec", this->icon_name.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: icon clock: \"%s\" for: %.1f sec", this->icon_name.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_ICON_DATE:
ESP_LOGD(TAG, "queue: icon date: \"%s\" for: %d sec", this->icon_name.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: icon date: \"%s\" for: %.1f sec", this->icon_name.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_ALERT_SCREEN:
ESP_LOGD(TAG, "queue: icon: \"%s\" for: %d sec", this->icon_name.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: icon: \"%s\" for: %.1f sec", this->icon_name.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_TEXT_SCREEN:
ESP_LOGD(TAG, "queue: text text: \"%s\" for: %d sec", this->text.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: text text: \"%s\" for: %.1f sec", this->text.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_RAINBOW_ICON:
ESP_LOGD(TAG, "queue: rainbow icon: \"%s\" text: %s for: %d sec", this->icon_name.c_str(), this->text.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: rainbow icon: \"%s\" text: %s for: %.1f sec", this->icon_name.c_str(), this->text.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_RAINBOW_TEXT:
ESP_LOGD(TAG, "queue: rainbow text: \"%s\" for: %d sec", this->text.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: rainbow text: \"%s\" for: %.1f sec", this->text.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_RAINBOW_CLOCK:
ESP_LOGD(TAG, "queue: rainbow clock for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: rainbow clock for: %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_RAINBOW_DATE:
ESP_LOGD(TAG, "queue: rainbow date for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: rainbow date for: %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_ICON_TEXT_SCREEN:
ESP_LOGD(TAG, "queue: icon text screen: \"%s\" text: %s for: %d sec", this->icon_name.c_str(), this->text.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: icon text screen: \"%s\" text: %s for: %.1f sec", this->icon_name.c_str(), this->text.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_RAINBOW_ICON_TEXT_SCREEN:
ESP_LOGD(TAG, "queue: rainbow icon text screen: \"%s\" text: %s for: %d sec", this->icon_name.c_str(), this->text.c_str(), static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: rainbow icon text screen: \"%s\" text: %s for: %.1f sec", this->icon_name.c_str(), this->text.c_str(), this->screen_time_ / 1000.0));
break;
case MODE_FIRE:
ESP_LOGD(TAG, "queue: fire for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: fire for: %.1f sec", this->screen_time_ / 1000.0));
break;

#ifndef USE_ESP8266
case MODE_BITMAP_SCREEN:
ESP_LOGD(TAG, "queue: bitmap for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: bitmap for: %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_BITMAP_SMALL:
ESP_LOGD(TAG, "queue: small bitmap for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: small bitmap for: %.1f sec", this->screen_time_ / 1000.0));
break;
case MODE_RAINBOW_BITMAP_SMALL:
ESP_LOGD(TAG, "queue: rainbow small bitmap for: %d sec", static_cast<uint16_t>(this->screen_time_ / 1000));
ESP_LOGD(TAG, "queue: rainbow small bitmap for: %.1f sec", this->screen_time_ / 1000.0));
break;
#endif

Expand Down

0 comments on commit f2450f3

Please sign in to comment.