From f1b1dc20346631c759d2d6628fd1fd30424ce817 Mon Sep 17 00:00:00 2001 From: Wojciech Kaczmarski <44336093+sp5wwp@users.noreply.github.com> Date: Mon, 20 Jun 2022 11:50:19 +0200 Subject: [PATCH] Changed battery type for Module17 to BAT_NONE --- openrtx/src/core/battery.c | 3 --- platform/targets/Module17/hwconfig.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/openrtx/src/core/battery.c b/openrtx/src/core/battery.c index 33bc37cb..a842c624 100644 --- a/openrtx/src/core/battery.c +++ b/openrtx/src/core/battery.c @@ -35,9 +35,6 @@ static const uint16_t bat_v_max = 0x0819; // 8.10V #elif defined BAT_LIPO_3S static const uint16_t bat_v_min = 0x0AD4; // 10.83V static const uint16_t bat_v_max = 0x0C73; // 12.45V -#elif defined BAT_MOD17 -static const uint16_t bat_v_min = 0x0600; // 6.00V -static const uint16_t bat_v_max = 0x0DCD; // 13.8V #elif defined BAT_NONE static const uint16_t bat_v_min = 0; static const uint16_t bat_v_max = 0; diff --git a/platform/targets/Module17/hwconfig.h b/platform/targets/Module17/hwconfig.h index b778f757..26ad7b34 100644 --- a/platform/targets/Module17/hwconfig.h +++ b/platform/targets/Module17/hwconfig.h @@ -39,7 +39,7 @@ #define PIX_FMT_BW /* Device has no battery */ -#define BAT_MOD17 +#define BAT_NONE /* Signalling LEDs */ #define PTT_LED GPIOC,8