fix build warning

1.2-legacy
geeksville 2020-03-18 14:51:54 -07:00
rodzic c9e2e6c386
commit 5e55695862
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -328,8 +328,9 @@ void MeshService::onGPSChanged()
// Update our local node info with our position (even if we don't decide to update anyone else) // Update our local node info with our position (even if we don't decide to update anyone else)
MeshPacket *p = allocForSending(); MeshPacket *p = allocForSending();
p->payload.which_variant = SubPacket_position_tag; p->payload.which_variant = SubPacket_position_tag;
Position &pos = p->payload.variant.position;
#if 0 #if 0
Position &pos = p->payload.variant.position;
if (gps.altitude.isValid()) if (gps.altitude.isValid())
pos.altitude = gps.altitude.meters(); pos.altitude = gps.altitude.meters();
pos.latitude = gps.location.lat(); pos.latitude = gps.location.lat();