Revision 1925

View differences:

trunk/code/projects/libdragonfly/analog.c
309 309
    // mask so only proper bits are possible.  
310 310
    PORTD = (PORTD & 0x1F) | ((which & 0x07) << 5);
311 311

  
312
    delay_ms(1);
313

  
312
    //For loop is used only as a delay to allow mux to settle
313
    for(volatile int i=0; i<5; i++);
314
    
314 315
    // Start the conversion
315 316
    ADCSRA |= _BV(ADSC);
316 317

  

Also available in: Unified diff