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:
parent
b92ad4b56a
commit
168791e08a
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue