Skip to content

Commit 5f6e47f

Browse files
committed
fixez
1 parent 5670f0b commit 5f6e47f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/sensehat/sensehat.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ func (s *SenseHat) SetNavLights() error {
835835

836836
// StartNavLights starts a background goroutine that keeps nav lights on.
837837
// The framebuffer can be cleared by external processes (kernel driver, console blanking),
838-
// so this periodically refreshes the nav lights to keep them visible.
838+
// so this periodically refreshes the gamma table and nav lights to keep them visible.
839839
func (s *SenseHat) StartNavLights() {
840840
if s.fbFile == nil {
841841
return
@@ -849,6 +849,7 @@ func (s *SenseHat) StartNavLights() {
849849
case <-s.navLightsDone:
850850
return
851851
case <-ticker.C:
852+
s.initGamma()
852853
s.SetNavLights()
853854
}
854855
}

0 commit comments

Comments
 (0)