change tft clear() to fillScreen() (#3077)

Maintains compatability with ESPI driver.

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
pull/3079/head v2.2.18.e9bde80
Ben Meadors 2024-01-11 10:06:26 -06:00 zatwierdzone przez GitHub
rodzic ccb5485510
commit e9bde80b57
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -425,7 +425,8 @@ TFTDisplay::TFTDisplay(uint8_t address, int sda, int scl, OLEDDISPLAY_GEOMETRY g
void TFTDisplay::display(bool fromBlank)
{
if (fromBlank)
tft->clear();
tft->fillScreen(TFT_BLACK);
// tft->clear();
concurrency::LockGuard g(spiLock);
uint16_t x, y;