meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.3k stars 800 forks source link

timing going up and down (and not correct) #604

Closed wakareva closed 3 years ago

wakareva commented 3 years ago

Hi, on my 2 tbeam I've notice this uncorrect time counting. As per the video the timing goes up and down and step from minutes to hours and back. In general after 4 minutes it step up to 74 or 93 hours also moving back in time. Plus sometime the time is too much bigger. I hope the picture/video are usefull.

https://youtu.be/WqUp11axkXk https://youtu.be/jKp-wvuiO1g https://youtu.be/aG10zvHD9tM

2020-12-29 10 32 37

mc-hamster commented 3 years ago

The number of hours on the screen calculates out roughly to some time around Jan 1, 1970.

mc-hamster commented 3 years ago

The node's last_seen is probably being saved before gps lock is made and then after the device gets the gps lock, when we do getTime() it does the math based on the wrong time scale.

wfang2002 commented 3 years ago

I have the same issue and created PR for the fix https://github.com/meshtastic/Meshtastic-device/pull/613

geeksville commented 3 years ago

thanks! @wfang2002's fix is exactly correct! somehow I must have nuked that line accidentally.