diff --git a/components/driver/esp32/touch_sensor.c b/components/driver/esp32/touch_sensor.c index c792494857..ebf454df17 100644 --- a/components/driver/esp32/touch_sensor.c +++ b/components/driver/esp32/touch_sensor.c @@ -432,7 +432,7 @@ esp_err_t touch_pad_filter_start(uint32_t filter_period_ms) } if (s_touch_pad_filter->timer == NULL) { s_touch_pad_filter->timer = xTimerCreate("filter_tmr", filter_period_ms / portTICK_PERIOD_MS, pdFALSE, - NULL, touch_pad_filter_cb); + NULL, (TimerCallbackFunction_t) touch_pad_filter_cb); if (s_touch_pad_filter->timer == NULL) { free(s_touch_pad_filter); s_touch_pad_filter = NULL; diff --git a/components/wpa_supplicant/src/esp_supplicant/esp_wps.c b/components/wpa_supplicant/src/esp_supplicant/esp_wps.c index 16f6f9965b..1cd859cdeb 100644 --- a/components/wpa_supplicant/src/esp_supplicant/esp_wps.c +++ b/components/wpa_supplicant/src/esp_supplicant/esp_wps.c @@ -61,7 +61,7 @@ typedef struct { int ret; /* return value */ } wps_ioctl_param_t; -static void *s_wps_task_hdl = NULL; +static TaskHandle_t s_wps_task_hdl = NULL; static void *s_wps_queue = NULL; static void *s_wps_api_lock = NULL; /* Used in WPS public API only, never be freed */ static void *s_wps_api_sem = NULL; /* Sync semaphore used between WPS publi API caller task and WPS task */