diff --git a/stm-firmware/hw-version-detect.c b/stm-firmware/hw-version-detect.c index 64df7f4..d428d12 100644 --- a/stm-firmware/hw-version-detect.c +++ b/stm-firmware/hw-version-detect.c @@ -27,6 +27,10 @@ #include #include +#if HW_REV_DETECT_PIN_LOW > HW_REV_DETECT_PIN_HIGH +#error Configuration error for Hardware derection pins. Lowest position must be less than the highest pin position. +#endif + enum hw_revision get_pcb_hardware_version(void) { uint8_t current_pin; diff --git a/stm-firmware/include/reflow-controller/hw-version-detect.h b/stm-firmware/include/reflow-controller/hw-version-detect.h index ef9721a..ff41ea4 100644 --- a/stm-firmware/include/reflow-controller/hw-version-detect.h +++ b/stm-firmware/include/reflow-controller/hw-version-detect.h @@ -48,7 +48,6 @@ */ #define HW_REV_DETECT_PIN_HIGH (15U) - /** * @brief PCB/Hardware Revision Type */