Rev 2316 | Rev 2319 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2316 | Rev 2318 | ||
---|---|---|---|
Line 130... | Line 130... | ||
130 | } |
130 | } |
131 | else |
131 | else |
132 | { |
132 | { |
133 | PlatinenVersion = 23; ACC_AltitudeControl = 1; |
133 | PlatinenVersion = 23; ACC_AltitudeControl = 1; |
134 | } |
134 | } |
- | 135 | if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION)) |
|
- | 136 | { |
|
- | 137 | SetParamByte(PID_EE_REVISION,0xFF); // reset the Settings if the Version changed |
|
- | 138 | SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // reset the Settings if the Version changed |
|
135 | 139 | } |
|
136 | #else |
140 | #else |
137 | if(PINB & 0x01) |
141 | if(PINB & 0x01) |
138 | { |
142 | { |
139 | if(PINB & 0x02) PlatinenVersion = 13; |
143 | if(PINB & 0x02) PlatinenVersion = 13; |
140 | else PlatinenVersion = 11; |
144 | else PlatinenVersion = 11; |
Line 147... | Line 151... | ||
147 | PlatinenVersion = 10; |
151 | PlatinenVersion = 10; |
148 | DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
152 | DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
149 | PORTD = 0x47; // |
153 | PORTD = 0x47; // |
150 | } |
154 | } |
151 | } |
155 | } |
152 | - | ||
153 | #endif |
156 | #endif |
Line 154... | Line 157... | ||
154 | 157 | ||
155 | DDRC = 0x81; // I2C, Spaker |
158 | DDRC = 0x81; // I2C, Spaker |
156 | DDRC |=0x40; // HEF4017 Reset |
159 | DDRC |=0x40; // HEF4017 Reset |