diff --git a/libs/st7735/screen.cpp b/libs/st7735/screen.cpp index 40b039c7d73..96ae6a97934 100644 --- a/libs/st7735/screen.cpp +++ b/libs/st7735/screen.cpp @@ -121,6 +121,7 @@ class WDisplay { } if (lcd) { + DMESG("LCD"); auto bl = LOOKUP_PIN(DISPLAY_BL); if (bl) { bl->setDigitalValue(1); @@ -231,9 +232,10 @@ class WDisplay { smart->setAddrWindow(offX, offY, width, displayHeight); } void waitForSendDone() { - if (lcd) + if (lcd) { + DMESG("lcd: wait"); lcd->waitForSendDone(); - else + } else smart->waitForSendDone(); } int sendIndexedImage(const uint8_t *src, unsigned width, unsigned height, uint32_t *palette) { @@ -353,7 +355,7 @@ void updateScreen(SImage_ img) { img->height() * mult != display->displayHeight) target_panic(131); // PANIC_SCREEN_ERROR - // DMESG("wait for done"); + DMESG("wait for done"); display->waitForSendDone(); auto palette = display->currPalette; @@ -368,7 +370,7 @@ void updateScreen(SImage_ img) { memcpy(display->screenBuf, img->pix(), img->pixLength()); - // DMESG("send"); + DMESG("send"); display->sendIndexedImage(display->screenBuf, img->width(), img->height(), palette); }