Skip to content

Commit

Permalink
tools: monochrome remove spaces from c++
Browse files Browse the repository at this point in the history
  • Loading branch information
polldo committed May 25, 2022
1 parent eb2d01f commit 1221d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/monochrome/monochrome.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ type Monochrome struct {
}

func (m *Monochrome) ToCpp() string {
s := "const uint8_t image[] = { "
s := "const uint8_t image[] = {"
s += fmt.Sprintf("0x%02x, 0x%02x, ", m.width, m.height)
for _, b := range m.val {
s += fmt.Sprintf("0x%02x, ", b)
}
s = strings.TrimRight(s, ", ")
s += " };"
s += "};"
return s
}

Expand Down

0 comments on commit 1221d7f

Please sign in to comment.