From 13698420d8a2bc87e488cfcbcfba16ae8557d640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 18 Mar 2025 14:19:48 +0100 Subject: [PATCH] inky/impression: fix init of bounds Fix typo in initialization of bounds when bounds are not explicitely set by the user. --- inky/impression.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inky/impression.go b/inky/impression.go index 1572b25..0107af5 100644 --- a/inky/impression.go +++ b/inky/impression.go @@ -205,7 +205,7 @@ func NewImpression(p spi.Port, dc gpio.PinOut, reset gpio.PinOut, busy gpio.PinI d.res = 0b11 } // Prefer the passed in values via Opts. - if o.Width == 0 && o.Height == 0 { + if o.Width != 0 && o.Height != 0 { d.width = o.Width d.height = o.Height }