From f309ee8f9e9db37daabd7c76da683e052ef62f7a Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 3 Mar 2020 13:45:31 -0800 Subject: [PATCH] Make devicestate.version a private #define in the device code --- mesh.proto | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/mesh.proto b/mesh.proto index aabf186..2b4af87 100644 --- a/mesh.proto +++ b/mesh.proto @@ -313,22 +313,9 @@ message DeviceState { /// Received packets saved for delivery to the phone repeated MeshPacket receive_queue = 5; - enum Version { - option allow_alias = true; - - /// default value for old files before we added version. - Unset = 0; - - /// We bump up the integer values in this enum to indicate minimum levels of encodings for saved files - /// if your file is below the Minimum you should discard it. - Minimum = 17; - - /// The current value we are using for saved files - Current = 17; - }; - /// A version integer used to invalidate old save files when we make incompatible changes - Version version = 6; + /// This integer is set at build time and is private to NodeDB.cpp in the device code. + uint32 version = 8; /// We keep the last received text message (only) stored in the device flash, so we can show it on the screen. Might be null MeshPacket rx_text_message = 7;