From c7a265fb33e7d7d4f43fc9828007e8d9dd42a0d7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 5 Oct 2022 13:12:12 +0100 Subject: [PATCH] fix bug in togglecmd --- examples/vm-cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vm-cli/main.go b/examples/vm-cli/main.go index 5b46a6d..45b10ce 100644 --- a/examples/vm-cli/main.go +++ b/examples/vm-cli/main.go @@ -113,7 +113,7 @@ func toggleCmd(vm *voicemeeter.Remote, cmd string, verbose bool) error { err = fmt.Errorf("unable to toggle %s", cmd) return err } - vm.SetFloat(cmd[1:], 1-val) + vm.SetFloat(cmd, 1-val) if verbose { fmt.Println("Toggling", cmd) }