From 8f84f7c0a58207c364a7c63c4e9d868704b23be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 27 Sep 2022 14:03:02 +0200 Subject: [PATCH] fixes #1669 --- src/modules/PositionModule.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/PositionModule.cpp b/src/modules/PositionModule.cpp index 3858e5a6..4045e000 100644 --- a/src/modules/PositionModule.cpp +++ b/src/modules/PositionModule.cpp @@ -94,6 +94,9 @@ MeshPacket *PositionModule::allocReply() if (pos_flags & Config_PositionConfig_PositionFlags_TIMESTAMP) p.timestamp = node->position.timestamp; + if (pos_flags & Config_PositionConfig_PositionFlags_SEQ_NO) + p.seq_number = node->position.seq_number; + // Strip out any time information before sending packets to other nodes - to keep the wire size small (and because other // nodes shouldn't trust it anyways) Note: we allow a device with a local GPS to include the time, so that gpsless // devices can get time.