Set lastMeasurementPacket as one we're sending (#1130)
This commit is contained in:
@@ -328,6 +328,7 @@ bool EnvironmentalMeasurementPlugin::sendOurEnvironmentalMeasurement(NodeNum des
|
|||||||
p->to = dest;
|
p->to = dest;
|
||||||
p->decoded.want_response = wantReplies;
|
p->decoded.want_response = wantReplies;
|
||||||
|
|
||||||
|
lastMeasurementPacket = packetPool.allocCopy(*p);
|
||||||
DEBUG_MSG("EnvironmentalMeasurement: Sending packet to mesh");
|
DEBUG_MSG("EnvironmentalMeasurement: Sending packet to mesh");
|
||||||
service.sendToMesh(p);
|
service.sendToMesh(p);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user