Project

General

Profile

Revision 903

Added by Chris Mar over 11 years ago

added range_init() call to dragonfly_init(). you will no longer have to call range_init() separately in your programs

View differences:

trunk/code/projects/libdragonfly/dragonfly_lib.c
78 78
	DDRG &= ~(_BV(PING0)|_BV(PING1));
79 79
  PORTG |= _BV(PING0)|_BV(PING1);
80 80
	
81
  if(config & ANALOG)
81
  if(config & ANALOG) {
82 82
    analog_init(ADC_START);
83
    range_init();
84
  }
83 85
	
84 86
  if(config & COMM) {
85 87
    //Both default to 115200. Check serial.h for more information.

Also available in: Unified diff