added int to string cot

pull/2/head
nullsumme 5 years ago
parent b7332c3b89
commit c0d69f5bb8

@ -5,6 +5,7 @@ import (
"image" "image"
"image/color" "image/color"
"image/draw" "image/draw"
"strconv"
"time" "time"
"periph.io/x/conn/v3" "periph.io/x/conn/v3"
@ -397,7 +398,7 @@ func (d *Dev) Halt() error {
// String returns a string containing configuration information // String returns a string containing configuration information
func (d *Dev) String() string { func (d *Dev) String() string {
return fmt.Sprintf("epd.Dev{%s, %s, %s, %s}", d.c, d.dc, d.opts.Height, d.opts.Width) return fmt.Sprintf("epd.Dev{%s, %s, Height: %s, Width: %s}", d.c, d.dc, strconv.Itoa(d.opts.Height), strconv.Itoa(d.opts.Width))
} }
func (d *Dev) sendData(c []byte) error { func (d *Dev) sendData(c []byte) error {

Loading…
Cancel
Save