ADCuC: speedup conversion
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 13 Jul 2017 12:39:50 +0000 (14:39 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 13 Jul 2017 12:39:50 +0000 (14:39 +0200)
atmega32u4/adcuc/main.c

index 92d774b0a24da7c0a84b78bef479eec6bd7251b5..491804b49cf3b0feeede3aa9de3a621bee66b2a0 100644 (file)
@@ -239,7 +239,7 @@ __attribute__((naked)) int main(void) {
       if (conversion_active == 1) {
         switch(step++) {
           case 0: do_channel(channel); break;
-          case 10:
+          case 1:
             read_channel(channel);
             conversion_active = 0;
             step = 0;