Define a new object to hold all of our nested config. If this works, do that for the Module Config as well.

Remove duplicate setting in PositionConfig.
This commit is contained in:
Thomas Göttgens 2022-05-21 20:47:04 +02:00
parent 7580666ad4
commit 6c3d1d19fc
2 changed files with 33 additions and 6 deletions

View file

@ -144,7 +144,7 @@ message Config {
uint32 position_broadcast_secs = 1;
/*
* We should send our position this often (but only if it has changed significantly)
* Disable adaptive position braoadcast, which is now the default.
*/
bool position_broadcast_smart_disabled = 2;
@ -155,11 +155,6 @@ message Config {
*/
bool fixed_position = 3;
/*
* Should we disbale location sharing with other nodes (or the local phone)
*/
bool location_share_disabled = 4;
/*
* Should the GPS be disabled for this node?
*/

View file

@ -5,6 +5,7 @@ option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";
import "channel.proto";
import "config.proto";
import "mesh.proto";
option java_outer_classname = "DeviceOnly";
@ -135,3 +136,34 @@ message OEMStore {
string oem_text = 5;
}
message LocalConfig {
/*
* TODO: REPLACE
*/
Config.DeviceConfig device = 1;
/*
* TODO: REPLACE
*/
Config.PositionConfig position = 2;
/*
* TODO: REPLACE
*/
Config.PowerConfig power = 3;
/*
* TODO: REPLACE
*/
Config.WiFiConfig wifi = 4;
/*
* TODO: REPLACE
*/
Config.DisplayConfig display = 5;
/*
* TODO: REPLACE
*/
Config.LoRaConfig lora = 6;
}