xdr: fix imports and readdile

mini 3 years ago
parent 8432fa48d1
commit 2b9161a874

@ -8,7 +8,6 @@ import (
xdr "github.com/davecgh/go-xdr/xdr2"
"io"
"io/fs"
"os"
"strings"
)
@ -29,7 +28,7 @@ func init() {
//LoadKeymap Load Orbmap KM structure
func LoadKeymap(file io.ReadCloser, dev *DeviceDef) *KeyMap {
mapped := new(KeyMap)
xdr.Unmarshal(of, mapped)
xdr.Unmarshal(file, mapped)
return mapped
}

Loading…
Cancel
Save