From: Michal MalĂ˝ Date: Sat, 20 Sep 2014 10:44:42 +0000 (+0200) Subject: - Use correct command for uploading X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=bb9462e1d8f7f5f4b2ad475875142ba4bcb907c6;p=KLGD_FF_plugin.git - Use correct command for uploading - Remove unused variable --- 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;