Skip to content

Commit

Permalink
these functions can now be static
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Nov 8, 2024
1 parent 4266c04 commit e7f8033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions firmware/hw_layer/adc/adc_inputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void updateSlowAdc(efitick_t nowNt) {
}
}

void addFastAdcChannel(const char* /*name*/, adc_channel_e setting) {
static void addFastAdcChannel(const char* /*name*/, adc_channel_e setting) {
if (!isAdcChannelValid(setting)) {
return;
}
Expand All @@ -299,7 +299,7 @@ void addFastAdcChannel(const char* /*name*/, adc_channel_e setting) {
#endif
}

void removeFastAdcChannel(const char *name, adc_channel_e setting) {
static void removeFastAdcChannel(const char *name, adc_channel_e setting) {
(void)name;
if (!isAdcChannelValid(setting)) {
return;
Expand Down
3 changes: 0 additions & 3 deletions firmware/hw_layer/adc/adc_inputs.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ int getAdcHardwareIndexByInternalIndex(int index);
int getInternalAdcValue(const char *msg, adc_channel_e index);
float getMCUInternalTemperature(void);

void addFastAdcChannel(const char *name, adc_channel_e setting);
void removeFastAdcChannel(const char *name, adc_channel_e setting);

#define getAdcValue(msg, hwChannel) getInternalAdcValue(msg, hwChannel)

#define adcToVoltsDivided(adc, hwChannel) (adcToVolts(adc) * getAnalogInputDividerCoefficient(hwChannel))
Expand Down

0 comments on commit e7f8033

Please sign in to comment.