Hello,
I need help with one problem.
In my WF, I use the settings via Menu2, so not in the form of GCM.
I have made seconds that should be displayed even in Low Power Mode, so the function function onPartialUpdate(dc).
Dc.setClip(); I have it set correctly and the values do not exceed:
- executionTimeAverage
- executionTimeLimit
The problem is that in Menu2 I have a classic radio button, so Boolean.
Code SecondsAlwaysOn:
function onPartialUpdate( dc ) { if(Storage.getValue(3) == true) { var clockTime = System.getClockTime(); var value = clockTime.sec.format("%02d"); dc.setClip(x,y,w,h); dc.setColor(Graphics.COLOR_RED, Graphics.COLOR_BLACK); dc.clear(); dc.drawText(x, y, Graphics.FONT_XTINY, value, Graphics.TEXT_JUSTIFY_LEFT); } }
When I turn on this switch, WF only shows me the seconds in the SIM for two minutes and then it disappears.
When I turn that switch off, the seconds work correctly for me.
I also used the System.println debug console and it also shows me the true and false values correctly.
Thank you