Rev 2334 | Rev 2340 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2334 | Rev 2336 | ||
---|---|---|---|
Line 177... | Line 177... | ||
177 | SPI_MasterInit(); |
177 | SPI_MasterInit(); |
178 | Capacity_Init(); |
178 | Capacity_Init(); |
179 | LIBFC_Init(LIB_FC_COMPATIBLE); |
179 | LIBFC_Init(LIB_FC_COMPATIBLE); |
180 | GRN_ON; |
180 | GRN_ON; |
181 | sei(); |
181 | sei(); |
182 | - | ||
183 | if(GetParamByte(PID_EE_REVISION) == EEPARAM_REVISION - 50) SetParamByte(PID_EE_REVISION,EEPARAM_REVISION); // remove the EEPARAM_REVISION_SUB from Version 0.90g |
- | |
184 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
- | |
185 | if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION)) |
- | |
186 | { |
- | |
187 | if(GetParamByte(PID_HARDWARE_VERSION) == 21) SetParamByte(PID_EE_REVISION,0); // reset the Settings if the Version changed to V2.2 |
- | |
188 | SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // Remember the Version number |
- | |
189 | wdt_enable(WDTO_15MS); // Reset-Commando |
- | |
190 | printf("\n\r--> Hardware Version Byte Changed <--"); |
- | |
191 | while(1); |
- | |
192 | } |
- | |
193 | #endif |
- | |
194 | ParamSet_Init(); |
182 | ParamSet_Init(); |
Line 195... | Line 183... | ||
195 | 183 | ||
196 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
184 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
197 | // + Check connected BL-Ctrls |
185 | // + Check connected BL-Ctrls |