From 7080be08a731c3fba5890eff8b620bdfa320e4a0 Mon Sep 17 00:00:00 2001 From: geeksville Date: Wed, 26 Feb 2020 09:07:55 -0800 Subject: [PATCH] protobuf updates --- app/src/main/proto/mesh.proto | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/proto/mesh.proto b/app/src/main/proto/mesh.proto index 65179088..34431493 100644 --- a/app/src/main/proto/mesh.proto +++ b/app/src/main/proto/mesh.proto @@ -58,12 +58,11 @@ message Position { double latitude = 1; double longitude = 2; int32 altitude = 3; - int32 battery_level = 4; // 0-100 - - /// true if this position came from the GPS inside the esp32 board, false if it was from a helper app on the phone - bool from_hardware = 5; + int32 battery_level = 4; // 1-100 (0 means not provided) /// This is usually not sent over the mesh (to save space), but it is sent from the phone so that the local device can set its RTC + /// If it is sent over the mesh (because there are devices on the mesh without GPS), it will only be sent by devices which has a + /// hardware GPS clock. uint32 time = 6; // seconds since 1970 }