From 2b9161a8742ca7627906a1a3660328ecd52196b4 Mon Sep 17 00:00:00 2001 From: mini Date: Wed, 28 Jul 2021 08:19:11 -0400 Subject: [PATCH] xdr: fix imports and readdile --- devices/devices_xdr.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devices/devices_xdr.go b/devices/devices_xdr.go index 31e5e6b..761f6b2 100644 --- a/devices/devices_xdr.go +++ b/devices/devices_xdr.go @@ -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 }