Skip to content

Commit 77faf0e

Browse files
authored
Update wifi_config_log_handle.c
如果不使用WIFI_LOG_UPLOAD的话,编译器会提示警告g_dev_log_queue定义了但是未使用,为了消除此警告,建议这里这样修改
1 parent e4ff871 commit 77faf0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qcloud-iot-esp8266-demo/main/wifi_config/wifi_config_log_handle.c

+2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828

2929
/************** WiFi config error msg collect and post feature ******************/
3030

31+
#ifdef WIFI_LOG_UPLOAD
3132
/* FreeRTOS msg queue */
3233
static void *g_dev_log_queue = NULL;
3334
#define LOG_QUEUE_SIZE 10
3435
#define LOG_ITEM_SIZE 128
36+
#endif
3537

3638
int init_dev_log_queue(void)
3739
{

0 commit comments

Comments
 (0)