diff -r b83d239fe719 -r c261350bb394 blackbox/lowlevel.c --- a/blackbox/lowlevel.c Sat Dec 03 11:11:06 2011 +0100 +++ b/blackbox/lowlevel.c Sat Dec 03 11:55:01 2011 +0100 @@ -50,8 +50,6 @@ RS232_init(); // initialize RS485 interface - RS232_puts_p(PSTR("CARRERA beta loading\n")); - initADC(); SFIOR = 0; @@ -108,11 +106,14 @@ OCR1A = TIMER1_7500NS; TIMSK |= 1<0) { if ((PIN(RAIL_DETECT_PORT) & _BV(RAIL_DETECT)) != 0) return 0; _delay_us(20); + i--; } if ((PIN(RAIL_DETECT_PORT) & _BV(RAIL_DETECT)) == 0) { cli(); // disable ALL Interrupts @@ -136,13 +138,13 @@ LED(2, 2); LED(4, 2); LED(5, 2); - _delay_ms(100); + blinkdelay(); LED(3, 2); - _delay_ms(100); + blinkdelay(); LED(3, 2); - _delay_ms(100); + blinkdelay(); LED(3, 2); - _delay_ms(100); + blinkdelay(); LED(3, 2); } }