From 8302a041926771d66b4ad1529ad7602cb24ffcfd Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sat, 19 Feb 2022 23:09:26 -0800 Subject: [PATCH] Move max_length and max_count into .options --- mesh.options | 4 +++- mesh.proto | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mesh.options b/mesh.options index 43519d4..5db0b7c 100644 --- a/mesh.options +++ b/mesh.options @@ -12,6 +12,9 @@ # note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is # outside of this envelope *Data.payload max_size:237 +*Data.int_size:8 + +*GroupInfo.group max_length:16 max_count:10 # Big enough for 1.2.28.568032c-d *MyNodeInfo.firmware_version max_size:18 @@ -39,4 +42,3 @@ *MyNodeInfo.air_period_tx max_count:24 *MyNodeInfo.air_period_rx max_count:24 -# *MyNodeInfo.air_period_rx_all max_count:12 \ No newline at end of file diff --git a/mesh.proto b/mesh.proto index 33c17e8..5af5b8c 100644 --- a/mesh.proto +++ b/mesh.proto @@ -891,7 +891,7 @@ enum CriticalErrorCode { * GroupInfo for group chats like #FoodFreaks and #CoolPeopleOnly */ message GroupInfo { - repeated string group = 1 [(nanopb).max_length = 16, (nanopb).max_count = 10]; + repeated string group = 1; }