File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import "github.com/thinnect/go-devparam"
2020
2121const ApplicationVersionMajor = 0
2222const ApplicationVersionMinor = 2
23- const ApplicationVersionPatch = 0
23+ const ApplicationVersionPatch = 1
2424
2525var ApplicationBuildDate string
2626var ApplicationBuildDistro string
Original file line number Diff line number Diff line change @@ -277,6 +277,15 @@ func (self *DeviceParameterManager) waitValueSeqnum(seqnum uint8) (*DeviceParame
277277 select {
278278 case packet := <- self .receive :
279279 payload := packet .GetPayload ()
280+
281+ if self .destination != 0 {
282+ msg , ok := packet .(* moteconnection.Message )
283+ if ! ok || msg .Source () != self .destination {
284+ self .Debug .Printf ("Ignoring packet %s\n " , packet )
285+ payload = nil
286+ }
287+ }
288+
280289 if len (payload ) > 0 {
281290 if payload [0 ] == DP_PARAMETER {
282291 p := new (DpParameter )
You can’t perform that action at this time.
0 commit comments