CC mode use GAIN_AUTO

This commit is contained in:
YiChin
2020-06-23 11:56:30 +08:00
parent ab2eeb7f96
commit fc41b62329
2 changed files with 1 additions and 9 deletions
@@ -6,7 +6,7 @@
#define VERSION_DATE_MONTH 6
#define VERSION_DATE_DAY 23
#define VERSION_DATE_HOUR 11
#define VERSION_DATE_MINUTE 5
#define VERSION_DATE_MINUTE 56
// this is NOT the version hash !!
// it's the last version hash
@@ -972,10 +972,6 @@ static void update_ZM_instruction(uint8 *ins) {
INSTRUCTION.NotifyRate = 500;
INSTRUCTION.VoVi_Switch = 0x01;
INSTRUCTION.ADCGainLevel = GAIN_200R;
if(INSTRUCTION.ADCGainLevel != GAIN_AUTO){
INSTRUCTION.AutoGainEnable = 0;
}
/*******************************************************
controller instruction
@@ -1343,10 +1339,6 @@ static void update_ZM_instruction(uint8 *ins) {
INSTRUCTION.NotifyRate = 500;
INSTRUCTION.VoVi_Switch = 0x02;//read Vscan = Vout - Vin
INSTRUCTION.ADCGainLevel = GAIN_200R;
if(INSTRUCTION.ADCGainLevel != GAIN_AUTO){
INSTRUCTION.AutoGainEnable = 0;
}
// uint8 *ins;
// ins[0] = 0xC0;
// ins[1] = 0xC0;