Skip to content

Commit

Permalink
fix initial brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Aug 25, 2024
1 parent 193ba3a commit 7c37fe8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ type KbdService struct {

func NewKbdService(c config.Configuration, l light.Light) *KbdService {
return &KbdService{
light: l,
idleTimeout: c.IdleTimeout,
userIdle: true,
light: l,
idleTimeout: c.IdleTimeout,
userIdle: true,
targetBrightness: 255,
}
}

Expand All @@ -52,7 +53,7 @@ func (s *KbdService) Run() {
if err != nil || b <= 0 {
b = 255
}
s.targetBrightness = b
s.targetBrightness = b * 255

ctx, cancel := context.WithCancel(context.Background())

Expand Down

0 comments on commit 7c37fe8

Please sign in to comment.