From aa6c1892b21bd08aaa8e5ce7d59549ccab25b210 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 16 Jan 2022 14:51:26 -0500 Subject: [PATCH] https://github.com/rusefi/alphax-2chan/issues/19 --- firmware/config/boards/hellen/hellen_common.cpp | 6 +++--- firmware/config/boards/hellen_meta.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/firmware/config/boards/hellen/hellen_common.cpp b/firmware/config/boards/hellen/hellen_common.cpp index 268c651eb7..153d71e36f 100644 --- a/firmware/config/boards/hellen/hellen_common.cpp +++ b/firmware/config/boards/hellen/hellen_common.cpp @@ -34,13 +34,13 @@ void setHellen176LedPins() { // this should be called before setHellenXXXLedPins() void detectHellenBoardType() { - // we test the LED1 pin because the red LED used has the smallest voltage drop, + // we test the red LED1 pin because the red LED used has the smallest voltage drop, // and thus can be detected more accurately static const brain_pin_e led1Pins[2] = { // LED1 pin of the 176-pin mcu module (we check it first!) - GPIOH_8, + H176_LED1_RED, // LED1 pin of the 144-pin mcu module - GPIOG_0, + H144_LED1_RED, }; int padState[2]; // check each mcu module type sequentially diff --git a/firmware/config/boards/hellen_meta.h b/firmware/config/boards/hellen_meta.h index 401b7f8564..647f944d60 100644 --- a/firmware/config/boards/hellen_meta.h +++ b/firmware/config/boards/hellen_meta.h @@ -15,6 +15,8 @@ void setHellen176LedPins(); void detectHellenBoardType(); +#define H144_LED1_RED GPIOG_0 +#define H176_LED1_RED GPIOH_8 #define H144_LS_1 GPIOG_7 #define H144_LS_2 GPIOG_8