Complete
over 4 years ago

WERETECH-11068

Fixed

onExitSleep is called after each wrist gesture even in high power

Fenix 6 Series - 15.73

My watch face has got indicator low power which is bright after call onEnterSleep so I now when is low power.

In onExitSleep I start count something for zero and need 10 second and i dev version I show this counter.

I can see such strange behaviour:

- enter sleep - indicator bright

- wrist gesture - indicator not bright , counter 0, 1, 2...

- next wrist gesture - indicator still not bright , counter 0,1...

it means that system call onExitSleep  wihout onEnterSleep  or onEnterSleep  and onExitSleep  one by one

In my opinion it should work else:

- enter sleep - indicator bright

- wrist gesture - indicator not bright , counter 0, 1, 2...

- next wrist gesture - indicator still not bright , counter 3, 4,...

Parents
  • We have been looking into this issue, but on every watch we test onEnterSleep and onExitSleep are always in sync. With a simple enter and exit sleep counter they increment together. 

    Would you be able to share some code so we can better see what you are experiencing?

Comment
  • We have been looking into this issue, but on every watch we test onEnterSleep and onExitSleep are always in sync. With a simple enter and exit sleep counter they increment together. 

    Would you be able to share some code so we can better see what you are experiencing?

Children
  • There is nothing special in my code, counter=0 in onExit and showing this counter in every onUpdate.

    But even system call onEnterSleep it shouldn't happen because:

    - 00:00:00 watch starts - high power - indicator not bright - OK

    - 00:00:10 onEnterSleep - indicator bright - OK - WATCH IS ABOUT 10 s in HIGH POWER

    - 00:00:15 wrist gesture - indicator not bright - it means onExitSleep was called, counter 0, 1, 2... HIGH POWER should be for about 10s

    - 00:00:18 +3 seconds, next wrist gesture indicator still not bright (means no low power, or there was quick onEnterSleep  and I can't noticed it), counter 0,1... - counter starts from 0 it means onExitSleep was called (only in onExitSleep there is counter=0) but I'm still in HIGH POWER  (3rd second)

     I'm sure in 100% system call onExitSleep during high power.

    I'll write some test to check if there is onEnterSleep during high power (before about 10th s period)