Skip to content

Commit

Permalink
Simplify code as suggested in hybridgroup#617
Browse files Browse the repository at this point in the history
  • Loading branch information
conejoninja authored and deadprogram committed May 22, 2019
1 parent f3a2bc5 commit 1c82bf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpio/max7219_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (a *MAX7219Driver) Start() (err error) {
a.All(MAX7219Shutdown, 0x01)
a.All(MAX7219DisplayTest, 0x00)
a.ClearAll()
a.All(MAX7219Intensity, 0x0f&0x0f)
a.All(MAX7219Intensity, 0x0f)

return
}
Expand All @@ -86,7 +86,7 @@ func (a *MAX7219Driver) SetIntensity(level byte) {
if level > 15 {
level = 15
}
a.All(MAX7219Intensity, level&level)
a.All(MAX7219Intensity, level)
}

// ClearAll turns off all LEDs of all modules
Expand Down

0 comments on commit 1c82bf7

Please sign in to comment.