Rev 1051 | Rev 1063 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1051 | Rev 1058 | ||
---|---|---|---|
Line 161... | Line 161... | ||
161 | printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR,VERSION_PATCH + 'a'); |
161 | printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR,VERSION_PATCH + 'a'); |
162 | printf("\n\r=============================="); |
162 | printf("\n\r=============================="); |
Line 163... | Line 163... | ||
163 | 163 | ||
Line 164... | Line -... | ||
164 | GRN_ON; |
- | |
- | 164 | GRN_ON; |
|
165 | 165 | ||
166 | #define EE_DATENREVISION 72 // wird angepasst, wenn sich die EEPROM-Daten geƤndert haben |
166 | |
167 | ReadParameterSet(0, (unsigned char *) &EE_Parameter.Kanalbelegung[0], 9); // read only the first bytes |
167 | ReadParameterSet(0, (unsigned char *) &EE_Parameter.Kanalbelegung[0], 9); // read only the first bytes |
168 | // valid Stick-Settings? |
168 | // valid Stick-Settings? |
169 | if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) == 255 || eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) < 72 || |
169 | if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) == 255 || eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) < EE_DATENREVISION || |
170 | EE_Parameter.Kanalbelegung[0] > 9 || EE_Parameter.Kanalbelegung[1] > 9 || EE_Parameter.Kanalbelegung[2] > 9 || EE_Parameter.Kanalbelegung[3] > 9) |
170 | EE_Parameter.Kanalbelegung[0] > 9 || EE_Parameter.Kanalbelegung[1] > 9 || EE_Parameter.Kanalbelegung[2] > 9 || EE_Parameter.Kanalbelegung[3] > 9) |
171 | { |
171 | { |
172 | printf("\n\rInit. EEPROM: Generating Default-Parameter and Stick-Settings..."); |
172 | printf("\n\rInit. EEPROM: Generating Default-Parameter and Stick-Settings..."); |