Skip to content

Commit

Permalink
Merge pull request #8 from hpsaturn/av/disable_fps_by_flag
Browse files Browse the repository at this point in the history
Av/disable fps by flag
  • Loading branch information
cgreening authored Oct 3, 2023
2 parents 5259605 + fa8fbfd commit b25586f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions player/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions player/src/VideoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -211,6 +212,7 @@ void VideoPlayer::framePlayerTask()
mDisplay.setTextColor(TFT_GREEN, TFT_BLACK);
mDisplay.printf("%d", frameTimes.size() / 5);
mDisplay.endWrite();
#endif
}
}

Expand Down

0 comments on commit b25586f

Please sign in to comment.