diff --git a/controlstream.go b/controlstream.go index 43f79ef..98444dd 100644 --- a/controlstream.go +++ b/controlstream.go @@ -247,9 +247,8 @@ func (s *controlStream) start() { s.common.sendPkt6() log.Debug("expecting pkt6 answer") - r = s.common.expect(16, []byte{0x10, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00}) // Example answer from radio: 0x10, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00, 0xe8, 0xd0, 0x44, 0x50, 0xa0, 0x61, 0x39, 0xbe - s.common.remoteSID = binary.BigEndian.Uint32(r[8:12]) + s.common.expect(16, []byte{0x10, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00}) s.authSendSeq = 1 s.authInnerSendSeq = 0x1234