Merge pull request #1728 from meshtastic/bug-1669

fixes #1669
raytac-diy
Thomas Göttgens 2022-09-27 14:15:38 +02:00 zatwierdzone przez GitHub
commit 4723faa95f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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.