fix T-Watch flip screen (#3113)

This commit is contained in:
Manuel
2024-01-19 20:11:19 +01:00
committed by GitHub
parent b489ee08c8
commit af157d276a
2 changed files with 8 additions and 1 deletions

View File

@@ -1052,7 +1052,11 @@ void Screen::setup()
// Standard behaviour is to FLIP the screen (needed on T-Beam). If this config item is set, unflip it, and thereby logically
// flip it. If you have a headache now, you're welcome.
if (!config.display.flip_screen) {
#if defined(ST7735_CS) || defined(ILI9341_DRIVER) || defined(ST7789_CS) || defined(RAK14014)
static_cast<TFTDisplay *>(dispdev)->flipScreenVertically();
#else
dispdev->flipScreenVertically();
#endif
}
#endif