[update] reset hstia gain when using error gain

This commit is contained in:
ROY
2022-12-23 09:51:09 +08:00
parent 9b3891689d
commit a64fa32d0b
2 changed files with 8 additions and 1 deletions
@@ -6,7 +6,7 @@
#define VERSION_DATE_MONTH 12
#define VERSION_DATE_DAY 23
#define VERSION_DATE_HOUR 9
#define VERSION_DATE_MINUTE 50
#define VERSION_DATE_MINUTE 51
// this is NOT the version hash !!
// it's the last version hash
@@ -265,6 +265,13 @@ static void decode_ris_ins(uint8 *ins)
break;
}
case 0x73: { // to reset hstia gain when using error gain
instru.HSTIAAutoGainEnable = 1;
instru.gain_lv_hstia = HSRTIA_200R;
HSTIAGainCtrl(instru.gain_lv_hstia);
break;
}
// 0xF0 ~ 0xF3 are cali mode function
case 0xF0: { //AC Amplitude
instru.gain_lv_hstia = HSRTIA_160K;