From d7c2b92cd7efbeee7d8f019585cf48c2f4664bb6 Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Tue, 13 Dec 2016 17:54:11 +0900 Subject: [PATCH] Fix bug about setting rotation callback Change-Id: I98238c3c2aec18a565c1c40824da1607821951fe Signed-off-by: Junghoon Park --- src/appcore-rotation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appcore-rotation.c b/src/appcore-rotation.c index e4227cb..5d90526 100644 --- a/src/appcore-rotation.c +++ b/src/appcore-rotation.c @@ -128,7 +128,7 @@ static void __changed_cb(sensor_t sensor, unsigned int event_type, if (rot.callback) { if (rot.cb_set && rot.mode != m) { _DBG("[APP %d] Rotation: %d -> %d", getpid(), rot.mode, m); - rot.callback((void *)&m, m, data); + rot.callback((void *)&m, m, user_data); rot.mode = m; } } -- 2.7.4