diff --git a/usrp/proto.go b/usrp/proto.go index c5704d9..7a695c7 100644 --- a/usrp/proto.go +++ b/usrp/proto.go @@ -19,11 +19,11 @@ func (f *Frame) Init(buff []byte, n int) error { return err } /* Can't initialize existing frame */ - if f.Metadata == 2 { + if f.Metadata == METADATA { return errors.New("frame is already initialized") } f.Metadata = int8(buff[23]) - if f.Metadata == 2 { + if f.Metadata == METADATA { fmt.Println("meta data") callLen := buff[33] f.Callsign = string(buff[46 : 46+callLen])