| Age | Commit message (Collapse) | Author |
|
// Previously this status would sleep all the way until the next day.
// This worked fine until the device entered sleep/hibernation
//
// Therefore a limit was added. Not the ideal solution,
// as if the device is woken within config.MaxSleep,
// then the date will not update until some extra time has elapsed.
//
// TODO: a better solution
if (until > config.MaxSleep) {
until = config.MaxSleep
}
time.Sleep(until)
|
|
|
|
This change was made years ago. IDK why. I just remember there being an
issue
|
|
Handle (nearly) all the plumbing (sleeps, goroutines and comms) in register()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If a goroutine is drawing, and then the bar is destroyed, what happens
then? Etc, etc. Anyway, the multiple goroutines for drawing didn't
actually help, so whatever.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|