用于变量不大的引用 if (s_abs((int)knob_level[*key_val] - (int)adc_val) > 4) { //取绝对值消抖 while (adc_val > knob_level[step]) { step++; } *key_val = step; }