From ed0f15959b8d7c027a467b69412fe0ac45b6d750 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Thu, 26 Feb 2026 05:41:49 +0100 Subject: [PATCH] Fix bug: can't build with Custom #175 --- App/driver/st7565.c | 4 +++- App/driver/vcp.c | 4 +++- App/driver/vcp.h | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/App/driver/st7565.c b/App/driver/st7565.c index 53ae3142..1be740a0 100644 --- a/App/driver/st7565.c +++ b/App/driver/st7565.c @@ -164,7 +164,9 @@ void ST7565_DrawLine(const unsigned int Column, const unsigned int Line, const u void ST7565_BlitLine(unsigned line) { ST7565_BlitScreen(line + 1); - getScreenShot(true); // Force immediate capture + #ifdef ENABLE_FEAT_F4HWN_SCREENSHOT + getScreenShot(true); // Force immediate capture + #endif } void ST7565_BlitStatusLine(void) diff --git a/App/driver/vcp.c b/App/driver/vcp.c index 563c923c..6082fc72 100644 --- a/App/driver/vcp.c +++ b/App/driver/vcp.c @@ -45,6 +45,7 @@ void VCP_Init() NVIC_EnableIRQ(USBD_IRQn); } +#ifdef ENABLE_FEAT_F4HWN_SCREENSHOT bool VCP_ScreenshotPing(void) { // State machine for parsing incoming packets: @@ -144,4 +145,5 @@ bool VCP_ScreenshotPing(void) } return connected; -} \ No newline at end of file +} +#endif // ENABLE_FEAT_F4HWN_SCREENSHOT diff --git a/App/driver/vcp.h b/App/driver/vcp.h index d7cc2c3a..0346dca1 100644 --- a/App/driver/vcp.h +++ b/App/driver/vcp.h @@ -28,7 +28,10 @@ extern uint8_t VCP_RxBuf[VCP_RX_BUF_SIZE]; extern volatile uint32_t VCP_RxBufPointer; void VCP_Init(); + +#ifdef ENABLE_FEAT_F4HWN_SCREENSHOT bool VCP_ScreenshotPing(void); +#endif static inline void VCP_Send(const uint8_t *Buf, uint32_t Size) {