]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/adc.c
adc: missing break statement
[bike-lights.git] / firmware / adc.c
index b82bc097136d3c70a63defb3290829ecaf3678d3..6db036af530b124e8aec9db50e668b6802d669a9 100644 (file)
@@ -43,6 +43,7 @@ static void inline setup_mux(unsigned char n)
        case 5: // gain stage offset: 1.1V, ADC1,1, gain 20
                ADMUX = _BV(REFS1) | _BV(MUX3) | _BV(MUX2) | _BV(MUX0);
                sum_shift = 0; // 1 measurement
        case 5: // gain stage offset: 1.1V, ADC1,1, gain 20
                ADMUX = _BV(REFS1) | _BV(MUX3) | _BV(MUX2) | _BV(MUX0);
                sum_shift = 0; // 1 measurement
+               break;
        case 6: // buttons: 1.1V, ADC3, single-ended
                PORTA |= _BV(PA3); // +5V to the voltage splitter
                ADMUX = _BV(REFS1) | _BV(MUX1) | _BV(MUX0);
        case 6: // buttons: 1.1V, ADC3, single-ended
                PORTA |= _BV(PA3); // +5V to the voltage splitter
                ADMUX = _BV(REFS1) | _BV(MUX1) | _BV(MUX0);