use autogened protobuf init code

This commit is contained in:
Kevin Hester
2020-12-07 10:27:31 +08:00
parent 90060e84c0
commit 79a24c200e
2 changed files with 3 additions and 5 deletions

View File

@@ -194,9 +194,7 @@ int MeshService::onGPSChanged(const meshtastic::GPSStatus *unused)
{
// Update our local node info with our position (even if we don't decide to update anyone else)
Position pos;
memset(&pos, 0, sizeof(pos));
Position pos = Position_init_default;
if (gps->hasLock()) {
if (gps->altitude != 0)