From 5e556958628d62c41bec40de27fc8050c1be5645 Mon Sep 17 00:00:00 2001 From: geeksville Date: Wed, 18 Mar 2020 14:51:54 -0700 Subject: [PATCH] fix build warning --- src/MeshService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MeshService.cpp b/src/MeshService.cpp index 51c942d2b..ec6003cc8 100644 --- a/src/MeshService.cpp +++ b/src/MeshService.cpp @@ -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) MeshPacket *p = allocForSending(); p->payload.which_variant = SubPacket_position_tag; - Position &pos = p->payload.variant.position; + #if 0 + Position &pos = p->payload.variant.position; if (gps.altitude.isValid()) pos.altitude = gps.altitude.meters(); pos.latitude = gps.location.lat();