reorder ADC channel index #1763

we forgot about something
This commit is contained in:
rusefi 2020-09-20 14:20:08 -04:00
parent 749c3e5f1d
commit 33eef982d1
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@
// ADC_CHANNEL_IN15 // PC17 (def=IAT)
brain_pin_e getAdcChannelBrainPin(const char *msg, adc_channel_e hwChannel) {
static_assert(EFI_ADC_NONE == ADC_CHANNEL_NONE);
// todo: replace this with an array :)
switch (hwChannel) {
case EFI_ADC_0:

View File

@ -39,6 +39,8 @@
// ADC_CHANNEL_IN15 // PC5
brain_pin_e getAdcChannelBrainPin(const char *msg, adc_channel_e hwChannel) {
static_assert(EFI_ADC_NONE == ADC_CHANNEL_NONE);
// todo: replace this with an array :)
switch (hwChannel) {
case EFI_ADC_0: