Subversion Repositories FlightCtrl

Rev

Rev 2039 | Rev 2059 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2039 Rev 2055
Line 55... Line 55...
55
#endif
55
#endif
Line 56... Line 56...
56
 
56
 
57
#include "eeprom.h"
57
#include "eeprom.h"
58
#include "printf_P.h"
58
#include "printf_P.h"
-
 
59
#include "output.h"
59
#include "output.h"
60
#include <avr/wdt.h>
Line 60... Line 61...
60
#include <avr/eeprom.h>
61
#include <avr/eeprom.h>
61
 
62
 
Line 165... Line 166...
165
      paramSet_default(i);
166
      paramSet_default(i);
166
      paramSet_writeToEEProm(i);
167
      paramSet_writeToEEProm(i);
167
    }
168
    }
168
    // default-Setting is parameter set 3
169
    // default-Setting is parameter set 3
169
    setActiveParamSet(1);
170
    setActiveParamSet(1);
-
 
171
    // For some strange reason, the read will have no effect.
-
 
172
    // Lets reset...
-
 
173
    wdt_enable(WDTO_250MS);
170
  }
174
  }
Line 171... Line 175...
171
 
175
 
172
  printf("\n\r\rUsing Parameter Set %d", getActiveParamSet());
176
  printf("\n\r\rUsing Parameter Set %d", getActiveParamSet());