From c176b52ec51375465b2a135f21688ea021b1a7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 18 Mar 2025 14:59:59 +0100 Subject: [PATCH] inky/impression: embed Dev Minor refactor to embed Dev directly instead of via a pointer. --- inky/impression.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inky/impression.go b/inky/impression.go index 1572b25..61de088 100644 --- a/inky/impression.go +++ b/inky/impression.go @@ -132,7 +132,7 @@ const ( // DevImpression is a handle to an Inky Impression. type DevImpression struct { - *Dev + Dev // Color Palette used to convert images to the 7 color. Palette color.Palette @@ -175,7 +175,7 @@ func NewImpression(p spi.Port, dc gpio.PinOut, reset gpio.PinOut, busy gpio.PinI } d := &DevImpression{ - Dev: &Dev{ + Dev: Dev{ c: c, maxTxSize: maxTxSize, dc: dc,