st7789: update saved rotation in SetRotation

This commit is contained in:
Ayke van Laethem
2023-05-09 14:18:55 +02:00
committed by Ron Evans
parent 53404b3f4b
commit b0c9f259dc
+1
View File
@@ -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()