From c0d69f5bb89871131e64038ff8cf9bdfdca27517 Mon Sep 17 00:00:00 2001 From: nullsumme Date: Tue, 12 Jan 2021 18:51:48 +0000 Subject: [PATCH] added int to string cot --- waveshare213v2/waveshare213v2.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waveshare213v2/waveshare213v2.go b/waveshare213v2/waveshare213v2.go index b4aad06..5cb539a 100644 --- a/waveshare213v2/waveshare213v2.go +++ b/waveshare213v2/waveshare213v2.go @@ -5,6 +5,7 @@ import ( "image" "image/color" "image/draw" + "strconv" "time" "periph.io/x/conn/v3" @@ -397,7 +398,7 @@ func (d *Dev) Halt() error { // String returns a string containing configuration information 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 {