From 17376b819a70470a787ef2a8cf7abe9d8a01c5bf Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Sun, 6 Dec 2020 18:29:38 +0100 Subject: [PATCH] hwconfig: Define MAX_VBAT for MD-UV380 --- platform/targets/MD-UV380/hwconfig.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/targets/MD-UV380/hwconfig.h b/platform/targets/MD-UV380/hwconfig.h index 897e2c02..438e2aff 100644 --- a/platform/targets/MD-UV380/hwconfig.h +++ b/platform/targets/MD-UV380/hwconfig.h @@ -76,6 +76,9 @@ #define FLASH_SDO GPIOB,4 #define FLASH_SDI GPIOB,5 +/* Maximum battery voltage */ +#define MAX_VBAT 8.4f + /* * To enable pwm for display backlight dimming uncomment this directive. *