winc1500: fix undefined declarations

LOG_LEVEL > LOG_LEVEL_OFF guards were protecting a couple of function
declarations. These functions were being used without taking this fact
into consideration. These guards are now applied around the stack_stats()
function only.

Signed-off-by: Diogo Correia <diogo.correia@fraunhofer.pt>
This commit is contained in:
Diogo Correia 2023-08-16 16:24:17 +01:00 committed by Carles Cufí
commit 168791e08a

View file

@ -158,11 +158,11 @@ struct winc1500_data {
static struct winc1500_data w1500_data;
#if LOG_LEVEL > LOG_LEVEL_OFF
static void stack_stats(void)
{
log_stack_usage(&winc1500_thread_data);
}
#endif /* LOG_LEVEL > LOG_LEVEL_OFF */
static char *socket_error_string(int8_t err)
{
@ -285,8 +285,6 @@ static char *socket_message_to_string(uint8_t message)
}
}
#endif /* LOG_LEVEL > LOG_LEVEL_OFF */
/**
* This function is called when the socket is to be opened.
*/
@ -773,8 +771,9 @@ static void winc1500_wifi_cb(uint8_t message_type, void *pvMsg)
default:
break;
}
#if LOG_LEVEL > LOG_LEVEL_OFF
stack_stats();
#endif /* LOG_LEVEL > LOG_LEVEL_OFF */
}
static void handle_socket_msg_connect(struct socket_data *sd, void *pvMsg)
@ -962,8 +961,9 @@ static void winc1500_socket_cb(SOCKET sock, uint8 message, void *pvMsg)
break;
}
#if LOG_LEVEL > LOG_LEVEL_OFF
stack_stats();
#endif /* LOG_LEVEL > LOG_LEVEL_OFF */
}
static void winc1500_thread(void)