Ticket Created
over 4 years ago

WERETECH-8582

obscurity flags wrong on Fenix 6 pro device but ok in sim

i've got a user on a Fenix 6 Pro, firmware 6.0, who is getting a value of "0" in the getObscurityFlags(); when displaying a datafield in the full screen layout.

in the sim, i properly get a 15.

any thoughts?

code is more or less as below

function onLayout(dc)
{

var obscurity = getObscurityFlags();

$.getDeviceAdjustments(obscurity, adj, height, width);

}

function getDeviceAdjustments(obscurity, adj, height, width)
{

Sys.println("obs: " + obscurity);

}

edited to confirm user is on firmware 6.0

Former Member
Former Member
Parents Comment Children
  • Former Member
    Former Member over 5 years ago in reply to Stephen.ConnectIQ

    good news!  that resolved my problem.  moving getobscurityflags into onupdate results in expected values.  i created a global bool that i flip on in onlayout and then off after i called getobscurityflags in onupdate so that i don't call it every second.