Skip to content

Commit a5c7ce3

Browse files
committed
When init_list is used, ignore invon/rotation parameters
init_list is more flexible, so no need to use set_rotation or invon parameters. Signed-off-by: Davide Bettio <[email protected]>
1 parent f4471cf commit a5c7ce3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

st7789_display_driver.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,12 +740,12 @@ static void display_init(Context *ctx, term opts)
740740
} else {
741741
display_init_std(spi);
742742
}
743-
}
744743

745-
set_rotation(spi, spi->rotation);
744+
set_rotation(spi, spi->rotation);
746745

747-
if (enable_tft_invon) {
748-
writecommand(spi, ST7789_INVON);
746+
if (enable_tft_invon) {
747+
writecommand(spi, ST7789_INVON);
748+
}
749749
}
750750

751751
writecommand(spi, ST7789_DISPON);

0 commit comments

Comments
 (0)