Subversion Repositories FlightCtrl

Rev

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

Rev 2318 Rev 2319
Line 132... Line 132...
132
     {
132
     {
133
          PlatinenVersion = 23; ACC_AltitudeControl = 1;
133
          PlatinenVersion = 23; ACC_AltitudeControl = 1;
134
         }  
134
         }  
135
        if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION))
135
        if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION))
136
         {
136
         {
137
          SetParamByte(PID_EE_REVISION,0xFF); // reset the Settings if the Version changed
137
          if(GetParamByte(PID_HARDWARE_VERSION) != 0xFF) SetParamByte(PID_EE_REVISION,0x00); // reset the Settings if the Version changed
138
          SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // reset the Settings if the Version changed
138
          SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // reset the Settings if the Version changed
139
         }
139
         }
140
#else
140
#else
141
        if(PINB & 0x01)
141
        if(PINB & 0x01)
142
     {
142
     {