Simplify page load

To reduce the chances of a serial buffer overflow
This commit is contained in:
Edward Firmo
2024-04-24 11:58:19 +02:00
parent baef06fadf
commit fe26e30a06
90 changed files with 793 additions and 3395 deletions

View File

@@ -12,6 +12,7 @@ Page climate
Events
Preinitialize Event
dim=brightness
if(api==1||embedded.val==1)
{
vis target_icon,0
@@ -32,7 +33,6 @@ Page climate
{
page home
}
vis unavailable,0
printh 92
prints "current_page",0
printh 00
@@ -146,56 +146,56 @@ Variable (string) click_comp
Variable (int32) active_slider
Attributes
ID : 42
ID : 41
Scope: local
Value: 1
Variable (int32) is_temp_range
Attributes
ID : 44
ID : 43
Scope: local
Value: 0
Variable (int32) temp_number1
Attributes
ID : 48
ID : 47
Scope: local
Value: 0
Variable (int32) temp_number2
Attributes
ID : 49
ID : 48
Scope: local
Value: 0
Variable (string) temp_unit
Attributes
ID : 50
ID : 49
Scope : local
Text : °
Max. Text Size: 10
Variable (int32) temp_low_max
Attributes
ID : 51
ID : 50
Scope: local
Value: 0
Variable (int32) temp_high_min
Attributes
ID : 52
ID : 51
Scope: local
Value: 0
Variable (int32) temp_gap
Attributes
ID : 53
ID : 52
Scope: local
Value: 0
Variable (string) dec_separator
Attributes
ID : 55
ID : 53
Scope : local
Text : .
Max. Text Size: 5
@@ -529,7 +529,7 @@ Text target_high
Text target_low
Attributes
ID : 43
ID : 42
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -541,16 +541,6 @@ Text target_low
Touch Release Event
active_slider.val=2
Text unavailable
Attributes
ID : 54
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 1
Slider slider_high
Attributes
ID : 7
@@ -586,7 +576,7 @@ Slider slider_high
Slider slider_low
Attributes
ID : 41
ID : 40
Scope : local
Dragging : 0
Send Component ID: on press and release
@@ -619,7 +609,7 @@ Slider slider_low
Slider climateslider
Attributes
ID : 45
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
@@ -834,32 +824,9 @@ Timer click_timer
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 40
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer timer1
Attributes
ID : 46
ID : 45
Scope : local
Period (ms): 1000
Enabled : no
@@ -879,7 +846,7 @@ Timer timer1
Timer timer2
Attributes
ID : 47
ID : 46
Scope : local
Period (ms): 1000
Enabled : no