Reduce cal_max 1220->1180 to absorb ADC jitter at toe

Raw ADC jitter of ~40 counts at toe caused MIDI flickering
between 127 and ~123. Lowering cal_max so the >= cal_max
clamp at 127 absorbs the noise.
This commit is contained in:
ash
2026-07-02 06:40:30 +00:00
parent c44bfb033b
commit 4ddb9a00bf
+1 -1
View File
@@ -11,7 +11,7 @@ ExpressionPedal::ExpressionPedal(uint8_t adc_pin)
, last_read_time(0) , last_read_time(0)
, current_raw(0) , current_raw(0)
, cal_min(36) , cal_min(36)
, cal_max(1220) , cal_max(1180)
{ {
} }