rusefillc 2022-06-29 02:16:46 -04:00
parent aec1900278
commit dfe3fa0e3b
2 changed files with 3 additions and 4 deletions

View File

@ -380,7 +380,8 @@ int detectHellenBoardId() {
efitick_t endNt = getTimeNowNt();
int elapsed_Ms = US2MS(NT2US(endNt - beginNt));
boardId = HELLEN_GET_BOARD_ID(rIdx[0], rIdx[1]);
// '+1' so that we can distinguish between identification not invoked and identification invoked
boardId = 1 + HELLEN_GET_BOARD_ID(rIdx[0], rIdx[1]);
efiPrintf("* RESULT: BoardId = %d, R1 = %.0f, R2 = %.0f (Elapsed time: %d ms)", boardId, R[0], R[1], elapsed_Ms);
#endif /* EFI_PROD_CODE */
return boardId;

View File

@ -68,9 +68,7 @@ void detectHellenMcuType() {
}
}
int hellenBoardId = 0;
void detectHellenBoardType() {
detectHellenMcuType();
hellenBoardId = detectHellenBoardId();
engine->engineState.hellenBoardId = detectHellenBoardId();
}