From 20b5a51e7b40358da138ab1104e870aea6ee8a13 Mon Sep 17 00:00:00 2001 From: Richard Li Date: Wed, 11 Sep 2024 10:22:10 +0800 Subject: [PATCH] Battery divider value is wrong according to schematic --- radio/src/targets/pl18/board.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/targets/pl18/board.h b/radio/src/targets/pl18/board.h index 3e5e4c552b2..4e2f28957ee 100644 --- a/radio/src/targets/pl18/board.h +++ b/radio/src/targets/pl18/board.h @@ -141,11 +141,11 @@ extern "C" void SDRAM_Init(); #endif #if defined(RADIO_NV14_FAMILY) - #define BATTERY_DIVIDER 2942 + #define BATTERY_DIVIDER 3102 // = 2047 * 510k / (510k + 510k) * 10 / 3.3V #elif defined(RADIO_NB4P) - #define BATTERY_DIVIDER 3102 // = 2047 * (10k / 10k + 10k) * 10 / 3.3V + #define BATTERY_DIVIDER 3102 // = 2047 * 10k / (10k + 10k) * 10 / 3.3V #else - #define BATTERY_DIVIDER 962 // = 2047 * (22k / 120k + 22k) * 10 / 3.3V + #define BATTERY_DIVIDER 962 // = 2047 * 22k / (120k + 22k) * 10 / 3.3V #endif #if defined(__cplusplus) && !defined(SIMU)