Update battery divider for NB4+

This commit is contained in:
Richard Li
2025-01-24 19:00:12 +01:00
committed by Malte Langermann
parent 4ebe5fb18f
commit 3e309b4e0d
+6 -1
View File
@@ -94,7 +94,12 @@ extern "C" void SDRAM_Init();
#define BATTERY_WARN 37 // 3.7V
#define BATTERY_MIN 35 // 3.4V
#define BATTERY_MAX 43 // 4.3V
#define BATTERY_DIVIDER 962
#if defined(RADIO_NB4P)
#define BATTERY_DIVIDER 3102 // = 2047 * (10k / 10k + 10k) * 10 / 3.3V
#else
#define BATTERY_DIVIDER 962 // = 2047 * (22k / 120k + 22k) * 10 / 3.3V
#endif
#if defined(__cplusplus) && !defined(SIMU)
extern "C" {