Bsongis/remove cpu temperature (#6541)

Remove CPU temperature
This commit is contained in:
Bertrand Songis
2019-07-03 17:17:42 +02:00
committed by GitHub
parent 5b139d7b35
commit 093025f444
19 changed files with 29 additions and 128 deletions
-5
View File
@@ -90,11 +90,6 @@ void adcSingleRead()
adcValues[7] = ADC->ADC_CDR14;
adcValues[8] = ADC->ADC_CDR8 ;
temperature = (((int32_t)temperature * 7) + ((((int32_t)ADC->ADC_CDR15 - 838) * 621) >> 11)) >> 3; // Filter it
if (get_tmr10ms() >= 100 && temperature > maxTemperature) {
maxTemperature = temperature;
}
// adc direction correct
#if defined(FRSKY_STICKS)
uint32_t i ;
-5
View File
@@ -438,11 +438,6 @@ uint16_t getCurrent()
return (current_scale * Current) / 8192;
}
uint8_t getTemperature()
{
return temperature + g_eeGeneral.temperatureCalib;
}
#define STICK_LV_GAIN 0x01
#define STICK_LH_GAIN 0x02
#define STICK_RV_GAIN 0x04
-4
View File
@@ -199,10 +199,6 @@ void usbMassStorage();
void configure_pins( uint32_t pins, uint16_t config );
uint16_t getCurrent();
extern uint8_t temperature ; // Raw temp reading
extern uint8_t maxTemperature ; // Raw temp reading
uint8_t getTemperature();
extern uint16_t Current_analogue;
extern uint16_t Current_max;
extern uint32_t Current_accumulator;