@@ -1548,12 +1548,22 @@ script:
|
|||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
return (page != "screensaver" and page != "boot" and page != "home" and timeout >= 1);
|
return (timeout >= 1 and
|
||||||
|
page != "boot" and
|
||||||
|
page != "confirm" and
|
||||||
|
page != "home" and
|
||||||
|
page != "notification" and
|
||||||
|
page != "screensaver");
|
||||||
then:
|
then:
|
||||||
- delay: !lambda return (timeout *1000);
|
- delay: !lambda return (timeout *1000);
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
ESP_LOGV("script.timer_page", "Timed out on page: %s", current_page->state.c_str());
|
ESP_LOGV("script.timer_page", "Timed out on page: %s", current_page->state.c_str());
|
||||||
if (current_page->state != "screensaver" and current_page->state != "boot" and current_page->state != "home" and timeout >= 1)
|
if (timeout >= 1 and
|
||||||
|
current_page->state != "boot" and
|
||||||
|
current_page->state != "confirm" and
|
||||||
|
current_page->state != "home" and
|
||||||
|
current_page->state != "notification" and
|
||||||
|
current_page->state != "screensaver")
|
||||||
{
|
{
|
||||||
ESP_LOGD("script.timer_page", "Fallback to page Home");
|
ESP_LOGD("script.timer_page", "Fallback to page Home");
|
||||||
disp1->goto_page("home");
|
disp1->goto_page("home");
|
||||||
|
|||||||
Reference in New Issue
Block a user