Skip to content

Commit

Permalink
Merge pull request #334 from keepkey/fix-ccompile
Browse files Browse the repository at this point in the history
fix conditional compile
  • Loading branch information
pastaghost committed Jan 14, 2023
2 parents efc7e72 + 1c0b8a1 commit f946abf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/firmware/authenticator.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static void setAuthData(void) {
storage_setAuthData(authData);
}

#ifdef DEBUG_LINK
#if DEBUG_LINK
static unsigned _otpSlot = 0;
void getAuthSlot(char *authSlotData) {
snprintf(authSlotData, 30, ":slot=%2d:secsiz=%2d:", _otpSlot, authData[_otpSlot].secretSize);
Expand Down Expand Up @@ -226,7 +226,7 @@ unsigned generateOTP(char *accountWithMsg, char otpStr[]) {
return NOACC; // account not found
}

#ifdef DEBUG_LINK
#if DEBUG_LINK
_otpSlot = slot; // used to get slot data
#endif

Expand Down
2 changes: 1 addition & 1 deletion lib/firmware/fsm_msg_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void fsm_msgPing(Ping *msg) {
case GENOTP:
//DEBUG_DISPLAY("genotp %s", &msg->message[strlen(authMesStr[authMsg])])
errcode = generateOTP(&msg->message[strlen(authMesStr[authMsg])], otp);
#ifdef DEBUG_LINK
#if DEBUG_LINK
char authSlot[128] = {0}; // debug link only
getAuthSlot(authSlot);
resp->has_message = true;
Expand Down

0 comments on commit f946abf

Please sign in to comment.