Project

General

Profile

Revision 1426

Added by Rich Hong over 11 years ago

Fixes #622.

encoders.h is not included in dragonfly_lib.h and encoders_init() is called within dragonfly_init().

View differences:

dragonfly_lib.c
60 60
 * Initializes the components specified by config.
61 61
 * 
62 62
 * @see analog_init, usb_init, xbee_init, buzzer_init,
63
 * bom_init, orb_init, motors_init, lcd_init
63
 * bom_init, orb_init, motors_init, lcd_init, encoders_init
64 64
 **/
65 65
 
66 66
void flash_red(void);
......
112 112
        else
113 113
            bom_init(bom_read);
114 114
    }
115

  
116
	if (config & ENCODERS)
117
	{
118
		encoders_init();
119
	}
120

  
115 121
    // delay a bit for stability
116 122
    _delay_ms(1);
117 123
}

Also available in: Unified diff