From 4078709ae9f10627f4f2f640063b13e3763b1104 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sun, 21 Jul 2024 15:28:53 +0200 Subject: [PATCH] Add compile options --- Makefile | 4 ++++ ui/status.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 22f6bc2..5385130 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ ENABLE_SCAN_RANGES ?= 1 ENABLE_FEAT_F4HWN ?= 1 ENABLE_FEAT_F4HWN_SCREENSHOT ?= 0 ENABLE_FEAT_F4HWN_SPECTRUM ?= 1 +ENABLE_FEAT_F4HWN_CHARGING_C ?= 1 ENABLE_FEAT_F4HWN_PMR ?= 1 ENABLE_FEAT_F4HWN_GMRS_FRS_MURS ?= 1 ENABLE_FEAT_F4HWN_CA ?= 1 @@ -410,6 +411,9 @@ endif ifeq ($(ENABLE_FEAT_F4HWN_SPECTRUM),1) CFLAGS += -DENABLE_FEAT_F4HWN_SPECTRUM endif +ifeq ($(ENABLE_FEAT_F4HWN_CHARGING_C),1) + CFLAGS += -DENABLE_FEAT_F4HWN_CHARGING_C +endif ifeq ($(ENABLE_FEAT_F4HWN_PMR),1) CFLAGS += -DENABLE_FEAT_F4HWN_PMR endif diff --git a/ui/status.c b/ui/status.c index fa55a15..d728144 100644 --- a/ui/status.c +++ b/ui/status.c @@ -223,10 +223,12 @@ void UI_DisplayStatus() { memcpy(line + x + 1, gFontLight, sizeof(gFontLight)); } + #ifdef ENABLE_FEAT_F4HWN_CHARGING_C else if (gChargingWithTypeC) { memcpy(line + x + 1, BITMAP_USB_C, sizeof(BITMAP_USB_C)); } + #endif // Battery unsigned int x2 = LCD_WIDTH - sizeof(BITMAP_BatteryLevel1) - 0;