From f009056300ff825cd205ede65fbf67fdaf6d12f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9=20=23openToWork-Paris?= Date: Fri, 4 Apr 2025 22:15:32 +0200 Subject: [PATCH] inky/impression: embed Dev (#103) 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 0107af5..840d337 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,