From dd82cd86ef65f5f06016e35718a15f2a8721d2fb Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Wed, 4 Sep 2024 15:47:35 +0200 Subject: [PATCH] iFlight IFLIGHT_BLITZ_H7_WING changes --- src/main/target/IFLIGHT_BLITZ_H7_PRO/CMakeLists.txt | 3 ++- src/main/target/IFLIGHT_BLITZ_H7_PRO/target.h | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/target/IFLIGHT_BLITZ_H7_PRO/CMakeLists.txt b/src/main/target/IFLIGHT_BLITZ_H7_PRO/CMakeLists.txt index b8fc79235d4..c4bd2c43840 100644 --- a/src/main/target/IFLIGHT_BLITZ_H7_PRO/CMakeLists.txt +++ b/src/main/target/IFLIGHT_BLITZ_H7_PRO/CMakeLists.txt @@ -1 +1,2 @@ -target_stm32h743xi(IFLIGHT_BLITZ_H7_PRO) \ No newline at end of file +target_stm32h743xi(IFLIGHT_BLITZ_H7_PRO) +target_stm32h743xi(IFLIGHT_BLITZ_H7_WING) \ No newline at end of file diff --git a/src/main/target/IFLIGHT_BLITZ_H7_PRO/target.h b/src/main/target/IFLIGHT_BLITZ_H7_PRO/target.h index 23fde63466c..7d93ec91ce6 100644 --- a/src/main/target/IFLIGHT_BLITZ_H7_PRO/target.h +++ b/src/main/target/IFLIGHT_BLITZ_H7_PRO/target.h @@ -20,7 +20,11 @@ #define TARGET_BOARD_IDENTIFIER "IB7P" +#ifdef IFLIGHT_BLITZ_H7_PRO #define USBD_PRODUCT_STRING "IFLIGHT_BLITZ_H7_PRO" +#else +#define USBD_PRODUCT_STRING "IFLIGHT_BLITZ_H7_WING" +#endif #define USE_TARGET_CONFIG @@ -161,7 +165,12 @@ #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX) #define CURRENT_METER_SCALE 212 -#define VBAT_SCALE_DEFAULT 1135 + +#ifdef IFLIGHT_BLITZ_H7_PRO +#define VBAT_SCALE_DEFAULT 2100 +#else +#define VBAT_SCALE_DEFAULT 1100 +#endif #define USE_SERIAL_4WAY_BLHELI_INTERFACE