robinson / gos7

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

Variables are redundant. #35

Open j1362212330 opened 4 years ago

j1362212330 commented 4 years ago

func (mb client) readArea(area int, dbNumber int, start int, amount int, wordLen int, buffer []byte) (err error) { 。。。 var response ProtocolDataUnit response, sendError := mb.send(&request) err = sendError 。。。 }