Rev 1344 | Rev 1356 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1344 | Rev 1350 | ||
---|---|---|---|
Line 300... | Line 300... | ||
300 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], EE_DATENREVISION); |
300 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], EE_DATENREVISION); |
301 | } |
301 | } |
Line 302... | Line 302... | ||
302 | 302 | ||
303 | FlugMinuten = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES2]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES2+1]); |
303 | FlugMinuten = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES2]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES2+1]); |
304 | FlugMinutenGesamt = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES+1]); |
304 | FlugMinutenGesamt = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_MINUTES+1]); |
305 | if(FlugMinutenGesamt == 0xffff || FlugMinuten == 0xffff) |
305 | if(FlugMinutenGesamt == 0xffff || FlugMinuten == 0xffff) |
306 | { |
306 | { |
307 | FlugMinuten = 0; |
307 | FlugMinuten = 0; |
308 | FlugMinutenGesamt = 0; |
308 | FlugMinutenGesamt = 0; |
309 | } |
309 | } |
Line 343... | Line 343... | ||
343 | I2CTimeout = 5000; |
343 | I2CTimeout = 5000; |
344 | WinkelOut.Orientation = 1; |
344 | WinkelOut.Orientation = 1; |
345 | LipoDetection(1); |
345 | LipoDetection(1); |
346 | printf("\n\r===================================\n\r"); |
346 | printf("\n\r===================================\n\r"); |
347 | //SpektrumBinding(); |
347 | //SpektrumBinding(); |
348 | timer = SetDelay(1000); |
348 | timer = SetDelay(2000); |
349 | while (1) |
349 | while (1) |
350 | { |
350 | { |
351 | if(UpdateMotor && AdReady) // ReglerIntervall |
351 | if(UpdateMotor && AdReady) // ReglerIntervall |
352 | { |
352 | { |
353 | UpdateMotor=0; |
353 | UpdateMotor=0; |