diff --git a/firmware/hw_layer/ports/kinetis/kinetis_common.cpp b/firmware/hw_layer/ports/kinetis/kinetis_common.cpp index a7e14c629e..9c1f82c824 100644 --- a/firmware/hw_layer/ports/kinetis/kinetis_common.cpp +++ b/firmware/hw_layer/ports/kinetis/kinetis_common.cpp @@ -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: diff --git a/firmware/hw_layer/ports/stm32/stm32_common.cpp b/firmware/hw_layer/ports/stm32/stm32_common.cpp index 6f9439ab2f..3969c4f618 100644 --- a/firmware/hw_layer/ports/stm32/stm32_common.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_common.cpp @@ -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: