update Vin boundary

This commit is contained in:
YiChin
2020-08-11 16:35:39 +08:00
parent ea3d146c86
commit fb4c0a59e8
2 changed files with 4 additions and 4 deletions
@@ -212,8 +212,8 @@ static void ReadADCBat(uint8_t *buf){
// Vin theoretical boundary <7, 5~200, >100 (mV)
#define VIN_GAIN_SMALL_BOUNDARY 7000 // 7 mV = 7,000,000 nV
#define VIN_GAIN_MID1_BOUNDARY1 5000 // 5 mV = 5,000,000 nV
#define VIN_GAIN_MID1_BOUNDARY2 200000 // 200 mV = 200,000,000 nV
#define VIN_GAIN_LARGE_BOUNDARY 100000 // 100 mV = 100,000,000 nV
#define VIN_GAIN_MID1_BOUNDARY2 300000 // 300 mV = 300,000,000 nV
#define VIN_GAIN_LARGE_BOUNDARY 250000 // 250 mV = 250,000,000 nV
static int32_t AutoGainReadIin(uint8_t *buf){
int32_t RealCurrent = 0;
@@ -5,8 +5,8 @@
#define VERSION_DATE_YEAR 20
#define VERSION_DATE_MONTH 8
#define VERSION_DATE_DAY 11
#define VERSION_DATE_HOUR 14
#define VERSION_DATE_MINUTE 37
#define VERSION_DATE_HOUR 16
#define VERSION_DATE_MINUTE 35
// this is NOT the version hash !!
// it's the last version hash