From b0c9f259dca6db9754c1974a58f8f0ad9678af08 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 9 May 2023 14:18:55 +0200 Subject: [PATCH] st7789: update saved rotation in SetRotation --- st7789/st7789.go | 1 + 1 file changed, 1 insertion(+) diff --git a/st7789/st7789.go b/st7789/st7789.go index 0ee23ba..460cfa5 100644 --- a/st7789/st7789.go +++ b/st7789/st7789.go @@ -441,6 +441,7 @@ func (d *Device) Rotation() drivers.Rotation { // SetRotation changes the rotation of the device (clock-wise) func (d *Device) SetRotation(rotation Rotation) error { + d.rotation = rotation d.startWrite() err := d.setRotation(rotation) d.endWrite()