From 72a452ecedbec07fd26a6916e253ed9ec0f186af Mon Sep 17 00:00:00 2001 From: Eunyoung Lee Date: Thu, 29 Sep 2022 20:20:56 +0900 Subject: [PATCH] Add a type casting for a callback Change-Id: I7ffb63c4b215f74a8f7d5852c12a4613940b9d2b --- call-ui/presenters/misc/MotionSensorPresenter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/call-ui/presenters/misc/MotionSensorPresenter.cpp b/call-ui/presenters/misc/MotionSensorPresenter.cpp index 99e18fd..d8ff443 100644 --- a/call-ui/presenters/misc/MotionSensorPresenter.cpp +++ b/call-ui/presenters/misc/MotionSensorPresenter.cpp @@ -59,7 +59,7 @@ namespace callui { } res = hand_gesture_start_recognition(m_gesture, HAND_GESTURE_WRIST_UP, - CALLBACK_B(MotionSensorPresenter::onGestureCb), + (hand_gesture_recognition_cb)CALLBACK_B(MotionSensorPresenter::onGestureCb), this); if (res != HAND_GESTURE_ERROR_NONE) { LOG_RETURN(RES_FAIL, "gesture_start_recognition() failed. " -- 2.34.1