From 4f10ab8d040f48bd602c2b799274e75d4fbc75f6 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Wed, 1 Dec 2021 17:24:01 -0800 Subject: [PATCH] Little update to #934 updated lastGpsSend --- src/plugins/PositionPlugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/PositionPlugin.cpp b/src/plugins/PositionPlugin.cpp index 11d13aba..f0aabdf2 100644 --- a/src/plugins/PositionPlugin.cpp +++ b/src/plugins/PositionPlugin.cpp @@ -170,6 +170,11 @@ int32_t PositionPlugin::runOnce() DEBUG_MSG("Sending smart pos@%x:6 to mesh (wantReplies=%d)\n", node->position.pos_timestamp, requestReplies); sendOurPosition(NODENUM_BROADCAST, requestReplies); + + /* Update lastGpsSend to now. This means if the device is stationary, then + getPref_position_broadcast_secs will still apply. + */ + lastGpsSend = now; } } }