Fix logic

This commit is contained in:
lordwelch 2017-11-06 23:37:38 -07:00
parent ae2e3acb41
commit 2dd8ffaccb

View File

@ -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) {