From bb9462e1d8f7f5f4b2ad475875142ba4bcb907c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sat, 20 Sep 2014 12:44:42 +0200 Subject: [PATCH] - Use correct command for uploading - Remove unused variable --- klgd_ff_plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/klgd_ff_plugin.c b/klgd_ff_plugin.c index 946be46..b6b7694 100644 --- a/klgd_ff_plugin.c +++ b/klgd_ff_plugin.c @@ -84,7 +84,6 @@ static int ffpl_update_effect(struct klgd_plugin_private *priv, struct klgd_comm struct input_dev *dev = priv->dev; union ffpl_control_data data; int ret; - enum ffpl_control_command cmd; if (!eff->uploaded_to_device) return ffpl_start_effect(priv, s, eff); @@ -108,7 +107,7 @@ static int ffpl_upload_effect(struct klgd_plugin_private *priv, struct klgd_comm goto set; data.effect = eff->latest; - ret = priv->control(dev, s, FFPL_EMP_TO_SRT, data); + ret = priv->control(dev, s, FFPL_EMP_TO_UPL, data); if (ret) return ret; eff->uploaded_to_device = true; -- 2.43.5