From 2dd8ffaccbe84973cef3e1e89654bda60f983eca Mon Sep 17 00:00:00 2001 From: lordwelch Date: Mon, 6 Nov 2017 23:37:38 -0700 Subject: [PATCH] Fix logic --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5afff31..33cc22c 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,7 @@ func changeKeymap(r rune, keys map[string]Keys, args Args, hidg0 *os.File, curre fmt.Println(args) kmap := args.ORDER[(*currentKeyMap)] fmt.Println(kmap) - for keys[kmap][string(r)].Decimal != 0 { + for keys[kmap][string(r)].Decimal == 0 { Press([8]byte{LCTRL, 0x00, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00}, hidg0) *currentKeyMap++ if *currentKeyMap == len(keys) {