set rx_time in packets

This commit is contained in:
geeksville
2020-02-12 14:18:43 -08:00
parent e79c49d100
commit 53cc8f9da3
3 changed files with 11 additions and 7 deletions

View File

@@ -81,6 +81,8 @@ void MeshService::handleFromRadio()
uint32_t oldFromNum = fromNum;
while ((mp = fromRadioQueue.dequeuePtr(0)) != NULL)
{
mp->rx_time = gps.getTime() / 1000; // store the arrival timestamp for the phone
if (mp->has_payload && mp->payload.which_variant == SubPacket_user_tag)
{
bool wasBroadcast = mp->to == NODENUM_BROADCAST;