Rev 2319 | Rev 2322 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2319 | Rev 2320 | ||
---|---|---|---|
Line 133... | Line 133... | ||
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 | if(GetParamByte(PID_HARDWARE_VERSION) != 0xFF) SetParamByte(PID_EE_REVISION,0x00); // 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); // Remember the Version number |
139 | } |
139 | } |
140 | #else |
140 | #else |
141 | if(PINB & 0x01) |
141 | if(PINB & 0x01) |
142 | { |
142 | { |
143 | if(PINB & 0x02) PlatinenVersion = 13; |
143 | if(PINB & 0x02) PlatinenVersion = 13; |