]> Devoid-pointer.net GitWeb - KLGD_FF_plugin.git/commitdiff
- Use correct command for uploading
authorMichal Malý <madcatxster@devoid-pointer.net>
Sat, 20 Sep 2014 10:44:42 +0000 (12:44 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sat, 20 Sep 2014 10:44:42 +0000 (12:44 +0200)
- Remove unused variable

klgd_ff_plugin.c

index 946be46502e3b80e88958057153b4359a9221b13..b6b7694fef549394da0d2e22d13b40547a706f2b 100644 (file)
@@ -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;