Rev 1765 | Rev 1880 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1765 | Rev 1806 | ||
---|---|---|---|
Line 178... | Line 178... | ||
178 | case 6: |
178 | case 6: |
179 | roll1 += ADC; |
179 | roll1 += ADC; |
180 | kanal = AD_UBAT; |
180 | kanal = AD_UBAT; |
181 | break; |
181 | break; |
182 | case 7: |
182 | case 7: |
- | 183 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
- | 184 | if(EE_Parameter.ExtraConfig & CFG_3_3V_REFERENCE) UBat = (3 * UBat + (11 * ADC) / 30) / 4; // there were some single FC2.1 with 3.3V reference |
|
- | 185 | else |
|
- | 186 | #endif |
|
183 | UBat = (3 * UBat + ADC / 3) / 4; |
187 | UBat = (3 * UBat + ADC / 3) / 4; |
184 | kanal = AD_ACC_Z; |
188 | kanal = AD_ACC_Z; |
185 | break; |
189 | break; |
186 | case 8: |
190 | case 8: |
187 | AdWertAccHoch = (signed int) ADC - NeutralAccZ; |
191 | AdWertAccHoch = (signed int) ADC - NeutralAccZ; |