del_screen and debig

pull/2/head
LuBeDa 3 years ago
parent f59077f2ac
commit e86db9706d

@ -448,6 +448,7 @@ namespace esphome
if (this->queue[i]->mode == mode)
{
bool force = true;
ESP_LOGW(TAG, "del_screen: icon %s in position: %d mode %d", icon_name.c_str(), i, mode);
if ((mode == MODE_ICONSCREEN) || (mode == MODE_FULL_SCREEN) || (mode == MODE_RAINBOW_ICON))
{
if (strcmp(this->queue[i]->icon_name.c_str(), icon_name.c_str()) != 0)
@ -457,9 +458,9 @@ namespace esphome
}
if (force)
{
ESP_LOGW(TAG, "del_screen: force");
this->queue[i]->mode = MODE_EMPTY;
this->queue[i]->endtime = 0;
ESP_LOGW(TAG, "del_screen: icon %s in position: %d mode %d", icon_name.c_str(), i, mode);
if (i == this->screen_pointer)
{
this->next_action_time = this->clock->now().timestamp;

@ -26,7 +26,7 @@ namespace esphome
ESP_LOGD(TAG, "queue: empty slot");
break;
case MODE_BLANK:
ESP_LOGD(TAG, "queue: blank screen");
ESP_LOGD(TAG, "queue: blank screen for %d sec", this->screen_time);
break;
case MODE_CLOCK:
ESP_LOGD(TAG, "queue: clock for %d sec", this->screen_time);

Loading…
Cancel
Save