Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic when use PLCStop() #69

Open
SaltySooda opened this issue Apr 22, 2024 · 1 comment
Open

panic when use PLCStop() #69

SaltySooda opened this issue Apr 22, 2024 · 1 comment

Comments

@SaltySooda
Copy link

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

@drehermi
Copy link
Contributor

drehermi commented Dec 4, 2024

Same here for PLCHotStart():

panic: runtime error: index out of range [20] with length 20

goroutine 1 [running]:
github.com/robinson/gos7.(*client).PLCHotStart(0xc000119e38)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants