From 1c0b8a12c203261de40573622617ba0b7fe6258d Mon Sep 17 00:00:00 2001 From: markrypt0 Date: Sat, 14 Jan 2023 09:49:02 -0700 Subject: [PATCH] fix conditional compile --- lib/firmware/authenticator.c | 4 ++-- lib/firmware/fsm_msg_common.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;