We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5670f0b commit 5f6e47fCopy full SHA for 5f6e47f
pkg/sensehat/sensehat.go
@@ -835,7 +835,7 @@ func (s *SenseHat) SetNavLights() error {
835
836
// StartNavLights starts a background goroutine that keeps nav lights on.
837
// The framebuffer can be cleared by external processes (kernel driver, console blanking),
838
-// so this periodically refreshes the nav lights to keep them visible.
+// so this periodically refreshes the gamma table and nav lights to keep them visible.
839
func (s *SenseHat) StartNavLights() {
840
if s.fbFile == nil {
841
return
@@ -849,6 +849,7 @@ func (s *SenseHat) StartNavLights() {
849
case <-s.navLightsDone:
850
851
case <-ticker.C:
852
+ s.initGamma()
853
s.SetNavLights()
854
}
855
0 commit comments