Skip to content

Commit

Permalink
dead function
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Nov 8, 2024
1 parent d3110cd commit 4266c04
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions firmware/hw_layer/adc/adc_inputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,18 +308,13 @@ void removeFastAdcChannel(const char *name, adc_channel_e setting) {
adcHwChannelEnabled[setting] = AdcChannelMode::Off;
}

// Weak link a stub so that every board doesn't have to implement this function
__attribute__((weak)) void setAdcChannelOverrides() { }

void initAdcInputs() {
efiPrintf("initAdcInputs()");

memset(adcHwChannelEnabled, 0, sizeof(adcHwChannelEnabled));

addFastAdcChannel("MAP", engineConfiguration->map.sensor.hwChannel);

setAdcChannelOverrides();

#if EFI_INTERNAL_ADC
portInitAdc();

Expand Down
1 change: 0 additions & 1 deletion firmware/hw_layer/ports/chconf_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#endif
void boardInit(void);
void setPinConfigurationOverrides(void);
void setAdcChannelOverrides(void);
#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 4266c04

Please sign in to comment.