From 365235626f0e040ae76d4972999067e9c560bd35 Mon Sep 17 00:00:00 2001 From: LolloDev Date: Fri, 12 Jan 2024 17:19:11 +0100 Subject: [PATCH] Working liveseek --- app/ceccommon.c | 2 ++ ui/helper.c | 2 +- ui/helper.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/ceccommon.c b/app/ceccommon.c index 39c77da..81c2fbf 100644 --- a/app/ceccommon.c +++ b/app/ceccommon.c @@ -16,6 +16,8 @@ #include "ceccommon.h" +#include "ui/helper.h" +#include "ui/ui.h" typedef struct { diff --git a/ui/helper.c b/ui/helper.c index a8c1c7e..4d55d48 100644 --- a/ui/helper.c +++ b/ui/helper.c @@ -276,7 +276,7 @@ bool UI_NoChannelName(char *channelName) { return channelName[0] < 32 || channelName[0] > 127; } -#ifdef ENABLE_MESSENGER +#if defined(ENABLE_MESSENGER) || defined(ENABLE_LIVESEEK_MHZ_KEYPAD) void UI_DrawPixelBuffer(uint8_t (*buffer)[128], uint8_t x, uint8_t y, bool black) { diff --git a/ui/helper.h b/ui/helper.h index fbbc93a..bd1c6c2 100644 --- a/ui/helper.h +++ b/ui/helper.h @@ -33,7 +33,7 @@ void UI_DisplayFrequency(const char *pDigits, uint8_t X, uint8_t Y, bool bDisplayLeadingZero, bool bFlag); void UI_DisplaySmallDigits(uint8_t Size, const char *pString, uint8_t X, uint8_t Y); -#if defined(ENABLE_MESSENGER) || defined(ENABLE_LIVESEEK_MHZ_KEYPAD) +#if defined(ENABLE_MESSENGER) || defined(ENABLE_LIVESEEK_MHZ_KEYPAD) void UI_DrawLineBuffer(uint8_t (*buffer)[128], int16_t x1, int16_t y1, int16_t x2, int16_t y2, bool black); void UI_DrawDottedLineBuffer(uint8_t (*buffer)[128], int16_t x1, int16_t y1, int16_t x2, int16_t y2, bool black, int dotSpacing); void UI_DrawRectangleBuffer(uint8_t (*buffer)[128], int16_t x1, int16_t y1, int16_t x2, int16_t y2, bool black);