sergelaurent
Technical User
I have the following code
while(1) {
if(toto==1) {
....
} elseif(toto==2) {
...
}
}
toto is a globlal variable.
I have noticed that if I initialise toto to 0 at the start of my program and when I set it to 1 later, the change in the value of toto is not refreshed in my while loop.
So, I wanted to know how to refresh the value of toto continuously or every periood time in my while loop?
while(1) {
if(toto==1) {
....
} elseif(toto==2) {
...
}
}
toto is a globlal variable.
I have noticed that if I initialise toto to 0 at the start of my program and when I set it to 1 later, the change in the value of toto is not refreshed in my while loop.
So, I wanted to know how to refresh the value of toto continuously or every periood time in my while loop?