From 34d41645d3c5b1bec5f942453a94c23f9fc9c873 Mon Sep 17 00:00:00 2001 From: Shubham Kulkarni Date: Thu, 30 Apr 2020 16:00:27 +0530 Subject: [PATCH] touch_sensor.c: Fix datatype of argument for timer callback function --- components/driver/esp32/touch_sensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;