Replace confirm var on buttons pages
Simpler and saves some memory.
This commit is contained in:
@@ -63,54 +63,12 @@ Variable (string) page_name
|
||||
Text : buttonpage04
|
||||
Max. Text Size: 12
|
||||
|
||||
Variable (int32) button01conf
|
||||
Attributes
|
||||
ID : 50
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button02conf
|
||||
Variable (int32) confirm
|
||||
Attributes
|
||||
ID : 51
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button03conf
|
||||
Attributes
|
||||
ID : 52
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button04conf
|
||||
Attributes
|
||||
ID : 53
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button05conf
|
||||
Attributes
|
||||
ID : 54
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button06conf
|
||||
Attributes
|
||||
ID : 55
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button07conf
|
||||
Attributes
|
||||
ID : 56
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button08conf
|
||||
Attributes
|
||||
ID : 57
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Text button01text
|
||||
Attributes
|
||||
ID : 4
|
||||
@@ -457,7 +415,8 @@ Hotspot button01
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button01conf.val==1)
|
||||
sys0=confirm.val&1
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button01text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -492,7 +451,8 @@ Hotspot button02
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button02conf.val==1)
|
||||
sys0=confirm.val&2
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button02text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -527,7 +487,8 @@ Hotspot button03
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button03conf.val==1)
|
||||
sys0=confirm.val&4
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button03text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -562,7 +523,8 @@ Hotspot button04
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button04conf.val==1)
|
||||
sys0=confirm.val&8
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button04text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -597,7 +559,8 @@ Hotspot button05
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button05conf.val==1)
|
||||
sys0=confirm.val&16
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button05text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -632,7 +595,8 @@ Hotspot button06
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button06conf.val==1)
|
||||
sys0=confirm.val&32
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button06text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -667,7 +631,8 @@ Hotspot button07
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button07conf.val==1)
|
||||
sys0=confirm.val&64
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button07text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -702,7 +667,8 @@ Hotspot button08
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button08conf.val==1)
|
||||
sys0=confirm.val&128
|
||||
if(sys0>0)
|
||||
{
|
||||
confirm.body.txt=button08text.txt
|
||||
confirm.page_id.val=dp
|
||||
@@ -753,7 +719,7 @@ Timer click_timer
|
||||
|
||||
Timer wakeup_timer
|
||||
Attributes
|
||||
ID : 58
|
||||
ID : 50
|
||||
Scope : local
|
||||
Period (ms): 100
|
||||
Enabled : yes
|
||||
|
||||
Reference in New Issue
Block a user