Rev 2404 | Rev 2408 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2404 | Rev 2407 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | } |
86 | } |
Line 87... | Line 87... | ||
87 | 87 | ||
88 | 88 | ||
89 | void LipoDetection(unsigned char print) |
89 | void LipoDetection(unsigned char print) |
90 | { |
90 | { |
91 | #define MAX_CELL_VOLTAGE 43 // max cell volatage for LiPO |
91 | #define MAX_CELL_VOLTAGE 43 // max cell voltage for LiPO |
92 | if(print) printf("\n\rBatt:"); |
92 | if(print) printf("\n\rBatt:"); |
93 | // timer = SetDelay(100); |
93 | // timer = SetDelay(100); |
94 | // if(print) while (!CheckDelay(timer)); |
94 | // if(print) while (!CheckDelay(timer)); |
Line 232... | Line 232... | ||
232 | } |
232 | } |
233 | PrintLine();// ("\n\r==================================="); |
233 | PrintLine();// ("\n\r==================================="); |
Line 234... | Line 234... | ||
234 | 234 | ||
235 | - | ||
- | 235 | ||
236 | if(RequiredMotors < FoundMotors) VersionInfo.HardwareError[1] |= FC_ERROR1_MIXER; |
236 | if(RequiredMotors < FoundMotors) VersionInfo.HardwareError[1] |= FC_ERROR1_MIXER; |
237 | 237 | if(RequiredMotors > 8) Max_I2C_Packets = 8; else Max_I2C_Packets = RequiredMotors; |
|
238 | //if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
238 | //if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
239 | { |
239 | { |
240 | printf("\n\rCalibrating pressure sensor.."); |
240 | printf("\n\rCalibrating pressure sensor.."); |