HC_Gain_scaled = (((HC_GAIN_HIGH - HC_GAIN_LOW) * (uint)pot_level)) >> 16; //Average and divide by 65535