Subversion Repositories FlightCtrl

Rev

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

Rev 2340 Rev 2341
Line 568... Line 568...
568
/*       Initialize EEPROM Parameter Sets          */
568
/*       Initialize EEPROM Parameter Sets          */
569
/***************************************************/
569
/***************************************************/
570
void ParamSet_Init(void)
570
void ParamSet_Init(void)
571
{
571
{
572
        uint8_t channel_backup  = 0, bad_params = 0, ee_default = 0,i;
572
        uint8_t channel_backup  = 0, bad_params = 0, ee_default = 0,i;
573
        if(GetParamByte(PID_EE_REVISION) == EEPARAM_REVISION - 50)  SetParamByte(PID_EE_REVISION,EEPARAM_REVISION); // remove the EEPARAM_REVISION_SUB from Version 0.90g
-
 
574
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
573
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
575
        if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION))
574
        if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION))
576
         {
575
         {
577
          if(PlatinenVersion == 22 && GetParamByte(PID_HARDWARE_VERSION) == 21 && !(PIND & 0x10)) SetParamByte(PID_EE_REVISION,0); // reset the Settings if the Version changed to V2.2
576
          if(PlatinenVersion == 22 && GetParamByte(PID_HARDWARE_VERSION) == 21 && !(PIND & 0x10)) SetParamByte(PID_EE_REVISION,0); // reset the Settings if the Version changed to V2.2
578
          SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // Remember the Version number
577
          SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // Remember the Version number