From eee31ad537dd27b8a92fc937d57818419ff1a1b2 Mon Sep 17 00:00:00 2001 From: Hpsaturn Date: Tue, 3 Oct 2023 20:57:58 +0200 Subject: [PATCH 1/2] fix missing build flags heredity on TDisplay env --- player/platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/player/platformio.ini b/player/platformio.ini index 96c77f4..47e42ae 100644 --- a/player/platformio.ini +++ b/player/platformio.ini @@ -187,6 +187,7 @@ extends = esp32_common platform = espressif32 @ 4.4.0 board = esp32dev build_flags = + ${common.build_flags} -DTDISPLAY -DUSE_DMA ; TFT_eSPI setup From fa8fbfdec89247d96a3ea7b66c5a2aa364f9cdb7 Mon Sep 17 00:00:00 2001 From: Hpsaturn Date: Tue, 3 Oct 2023 20:58:24 +0200 Subject: [PATCH 2/2] enable/disable FPS print on screen via pio build flag --- player/src/VideoPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player/src/VideoPlayer.cpp b/player/src/VideoPlayer.cpp index 224f27c..be021fb 100644 --- a/player/src/VideoPlayer.cpp +++ b/player/src/VideoPlayer.cpp @@ -200,6 +200,7 @@ void VideoPlayer::framePlayerTask() mJpeg.decode(0, 0, 0); mJpeg.close(); } + #if CORE_DEBUG_LEVEL > 0 // show channel indicator if (millis() - mChannelVisible < 2000) { mDisplay.setCursor(20, 20); @@ -211,6 +212,7 @@ void VideoPlayer::framePlayerTask() mDisplay.setTextColor(TFT_GREEN, TFT_BLACK); mDisplay.printf("%d", frameTimes.size() / 5); mDisplay.endWrite(); + #endif } }