Skip to content

Commit

Permalink
Battery divider value is wrong according to schematic
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli committed Sep 12, 2024
1 parent 7651ec7 commit 30049d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radio/src/targets/pl18/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 30049d2

Please sign in to comment.