Skip to content

Commit 6b68e32

Browse files
committed
Fix Serial number reporting
Fixes #231
1 parent cca5725 commit 6b68e32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

serial.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,12 @@ func spListDual(network bool) {
186186
spl := SpPortList{make([]SpPortItem, n, n), network}
187187

188188
ctr := 0
189+
189190
for _, item := range list {
190191

191192
spl.Ports[ctr] = SpPortItem{
192193
Name: item.Name,
193-
SerialNumber: item.SerialNumber,
194+
SerialNumber: item.ISerial,
194195
DeviceClass: item.DeviceClass,
195196
IsOpen: false,
196197
IsPrimary: false,

seriallist.go

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313

1414
type OsSerialPort struct {
1515
Name string
16-
SerialNumber string
1716
DeviceClass string
1817
Manufacturer string
1918
Product string

0 commit comments

Comments
 (0)