spa-acp-tool: fix set-volume vol argument parse

This commit is contained in:
Nicolai Syvertsen 2021-01-11 22:26:30 +01:00
parent 5f66650f7c
commit 09a690b123

View file

@ -406,7 +406,7 @@ static int cmd_set_volume(struct data *data, const struct command *cmd, int argc
return -EINVAL;
}
dev_id = atoi(argv[1]);
vol = atof(argv[1]);
vol = atof(argv[2]);
if (dev_id >= card->n_devices)
return -EINVAL;