robinson / gos7

Implementation of Siemens S7 protocol in golang
BSD 3-Clause "New" or "Revised" License
314 stars 121 forks source link

panic when use PLCStop() #69

Open SaltySooda opened 4 months ago

SaltySooda commented 4 months ago

panic: runtime error: index out of range [20] with length 20 goroutine 1 [running]: ProtocolS7/controller/gos7.(*client).PLCStop(0xc0002cfea0?) C:/GolangProjects/ProtocolS7/controller/gos7/control.go:73 +0x128

in this file control.go,I see this if err == nil .are you sure it's not like if err != nil ? @robinson