What if I add another state: Airplane mode OFF to the profile? Would
the profile exit when the it sets Airplane mode ON? If so, the exit
task would clear the %RUNNING variable. How's something like this:
State: Variable Value %CELLSIG < 4
State: Power Inverted
State: Airplane mode OFF
Enter Task:
1. Variable Set: %RUNNING, 1
2. Wait 5 Mins
3. If %RUNNING <=== this will have been cleared by exit task if
signal improved
4. Airplane Mode On
5. Wait 30
6. End if
At this point the Task exits, and won't Airplane mode get set back to
whatever it was before it entered the profile?
Exit Task:
Variable Clear: %RUNNING
There is also the problem that I can't set three state contexts.
How's this:
State: Variable Value %CELLSIG < 4
State: Power Inverted
Enter Task:
1. Variable Set: %RUNNING, 1
2. Wait 5 Mins
3. If %RUNNING <=== this will have been cleared by exit task if
signal improved
4. If Airplane Mode OFF
5 Airplane Mode On
6. Wait 30
7. Airplane Mode Off
8. Wait 1 minute
9. GoTo 2
10. End if
11. Endif
But, what if, during that 30 minutes that airplane mode is ON (step 6)
I want to put the phone in airplane mode for good? I guess I could
always turn the profile off when I _really_ need airplane mode on...
Hmmm.
-k-