Skip to content

Commit

Permalink
https://github.com/rusefi/hellen-112-17/issues/25
Browse files Browse the repository at this point in the history
only:hellen-112-17
  • Loading branch information
rusefillc committed Oct 15, 2023
1 parent 7c12648 commit d44ae74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions firmware/config/boards/hellen/hellen-112-17/board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ DDEFS += -DFIRMWARE_ID=\"hellen-112-17\" $(VAR_DEF_ENGINE_TYPE)

DDEFS += -DSHORT_BOARD_NAME=hellen-112-17
DDEFS += -DHW_HELLEN_K=TRUE
DDEFS += -DHELLEN_BOARD_ID_DEBUG

include $(BOARDS_DIR)/hellen/hellen-common100.mk
7 changes: 3 additions & 4 deletions firmware/config/boards/hellen/hellen_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void configureHellenCanTerminator() {
}

// this should be called before setHellenXXXLedPins()
void detectHellenMcuType() {
static void detectHellenMcuType() {
// 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] = {
Expand Down Expand Up @@ -101,11 +101,10 @@ void detectHellenMcuType() {
efiPrintf("Hellen board pin states = %d %d", padState[0], padState[1]);
if (padState[0] && !padState[1]) {
efiPrintf("* Hellen 176-pin mcu detected!");
}
else if (!padState[0] && padState[1]) {
} else if (!padState[0] && padState[1]) {
efiPrintf("* Hellen 144-pin mcu detected!");
} else {
efiPrintf("* Cannot detect Hellen mcu module!");
efiPrintf("* Cannot figure if legacy 144 or 176 Hellen mcu module!");
}
}

Expand Down

0 comments on commit d44ae74

Please sign in to comment.