diff --git a/dvorak.json b/dvorak.json index 2a2b37e..76572d3 100644 --- a/dvorak.json +++ b/dvorak.json @@ -255,7 +255,7 @@ "modifier": "00000010", "decimal": 19 }, - "T" : { + "T" : { "modifier": "00000010", "decimal": 28 }, diff --git a/main.go b/main.go index 33cc22c..0e1d5ca 100644 --- a/main.go +++ b/main.go @@ -135,7 +135,7 @@ func main() { } changeKeymap(r, keys, args, hidg0, ¤tKeyMap) _, err = fmt.Sscanf(keys[args.ORDER[currentKeyMap]][string(r)].Modifier, "%b", flag) - binary.PutVarint(report[:], int64(keys[args.ORDER[currentKeyMap]][string(r)].Decimal)) + binary.LittleEndian.PutUint64(report[:], uint64(keys[args.ORDER[currentKeyMap]][string(r)].Decimal)) Press([8]byte{flag, 0, report[0], report[1], report[2], report[3], report[4], report[5]}, hidg0) }