diff --git a/lib/firmware/authenticator.c b/lib/firmware/authenticator.c index 94369920..d7485a74 100644 --- a/lib/firmware/authenticator.c +++ b/lib/firmware/authenticator.c @@ -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); @@ -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 diff --git a/lib/firmware/fsm_msg_common.h b/lib/firmware/fsm_msg_common.h index 795ed4ed..33cd3e10 100644 --- a/lib/firmware/fsm_msg_common.h +++ b/lib/firmware/fsm_msg_common.h @@ -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;