inky/impression: fix init of bounds (#102)

Fix typo in initialization of bounds when bounds are not explicitely set
by the user.
pull/109/head
Olivier Mengué #openToWork-Paris 1 year ago committed by GitHub
parent dd6f498f5c
commit 0187bca55f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
}

Loading…
Cancel
Save