MAX_SAMPLES_CAL
int prox_history[MAX_SAMPLES_CAL + 1];
chip->settings.prox_max_samples_cal > MAX_SAMPLES_CAL)