mirror of https://github.com/rusefi/rusefi.git
adc: dead
This commit is contained in:
parent
eab5e16282
commit
7e509c432e
|
@ -35,13 +35,10 @@ public:
|
|||
int size() const;
|
||||
void init(void);
|
||||
uint32_t conversionCount = 0;
|
||||
int getAdcValueByIndex(int internalIndex) const;
|
||||
|
||||
adcsample_t *samples;
|
||||
size_t buf_len;
|
||||
|
||||
int getAdcValueByHwChannel(adc_channel_e hwChannel) const;
|
||||
|
||||
adc_state values;
|
||||
private:
|
||||
ADCConversionGroup* hwConfig;
|
||||
|
|
|
@ -240,15 +240,6 @@ int AdcDevice::size() const {
|
|||
return channelCount;
|
||||
}
|
||||
|
||||
int AdcDevice::getAdcValueByHwChannel(adc_channel_e hwChannel) const {
|
||||
int internalIndex = internalAdcIndexByHardwareIndex[hwChannel];
|
||||
return values.adc_data[internalIndex];
|
||||
}
|
||||
|
||||
int AdcDevice::getAdcValueByIndex(int internalIndex) const {
|
||||
return values.adc_data[internalIndex];
|
||||
}
|
||||
|
||||
void AdcDevice::init(void) {
|
||||
hwConfig->num_channels = size();
|
||||
/* driver does this internally */
|
||||
|
|
Loading…
Reference in New Issue