Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

display.autoOff always true in Simulator

ANSWERED

I'm working on a clock face and one of the important features is to disable display.autoOff behavior. On a Versa watch for testing, with a setting to toggle autoOff, display.autoOff=false doesn't keep the display on as expected. Testing in the simulator it appears that display.autoOff is always true even immediately after being assigned false. Is this an issue with the simulator, my code, or something else?

 

Code:

import { display } from "display";

....

display.autoOff = false;
display.on = true;
console.log("forceDisplayOn: " + data.forceDisplayOn + ", display.on: " + display.on + ", display.autoOff: " + display.autoOff );

 

 

Log:

[6:35:50 AM]forceDisplayOn: true, display.on: true, display.autoOff: true

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I found autoOff to be unreliable (admittedly a year or so ago). I found that I had to detect display.onchange and turn the display back on.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

I found autoOff to be unreliable (admittedly a year or so ago). I found that I had to detect display.onchange and turn the display back on.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

I can wish the API worked as described but knowing it doesn't is just as helpful! Thanks!

Best Answer
0 Votes