Subversion Repositories FlightCtrl

Rev

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

Rev 1481 Rev 1486
Line 199... Line 199...
199
        UART_Init();
199
        UART_Init();
200
    rc_sum_init();
200
    rc_sum_init();
201
        ADC_Init();
201
        ADC_Init();
202
        i2c_init();
202
        i2c_init();
203
        SPI_MasterInit();
203
        SPI_MasterInit();
-
 
204
        Capacity_Init();
204
        LIBFC_Init();
205
        LIBFC_Init();
205
        GRN_ON;
206
        GRN_ON;
206
    sei();
207
    sei();
Line 207... Line 208...
207
 
208
 
Line 474... Line 475...
474
                   eeprom_write_byte(&EEPromArray[EEPROM_ADR_MINUTES+1],FlugMinutenGesamt % 256);
475
                   eeprom_write_byte(&EEPromArray[EEPROM_ADR_MINUTES+1],FlugMinutenGesamt % 256);
475
                                   timer = SetDelay(20); // falls "timer += 20;" mal nicht geht
476
                                   timer = SetDelay(20); // falls "timer += 20;" mal nicht geht
476
                             }
477
                             }
477
                        }
478
                        }
478
           LED_Update();
479
           LED_Update();
-
 
480
           Capacity_Update();
479
          }
481
          }
480
     if(!SendSPI) { SPI_TransmitByte(); }
482
     if(!SendSPI) { SPI_TransmitByte(); }
481
    }
483
    }
482
 return (1);
484
 return (1);
483
}
485
}