From 5425767b0d664bf5a92dbc26e206c1b2eb2584ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 28 Dec 2022 23:27:51 +0100 Subject: [PATCH] add proto for RemoteHardware. This can be extended later, enables for now. --- admin.proto | 5 +++++ localonly.proto | 5 +++++ module_config.proto | 16 ++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/admin.proto b/admin.proto index 79a6687..873939b 100644 --- a/admin.proto +++ b/admin.proto @@ -105,6 +105,11 @@ message AdminMessage { * TODO: REPLACE */ AUDIO_CONFIG = 7; + + /* + * TODO: REPLACE + */ + REMOTEHARDWARE_CONFIG = 7; } /* diff --git a/localonly.proto b/localonly.proto index f4c1859..366ed02 100644 --- a/localonly.proto +++ b/localonly.proto @@ -100,6 +100,11 @@ message LocalModuleConfig { */ ModuleConfig.AudioConfig audio = 9; + /* + * The part of the config that is specific to the GPS module + */ + ModuleConfig.RemoteHardwareConfig remote_hardware = 10; + /* * A version integer used to invalidate old save files when we make * incompatible changes This integer is set at build time and is private to diff --git a/module_config.proto b/module_config.proto index c6e6cb0..4b4ad87 100644 --- a/module_config.proto +++ b/module_config.proto @@ -56,6 +56,17 @@ message ModuleConfig { bool json_enabled = 6; } + /* + * RemoteHardwareModule Config + */ + message RemoteHardwareConfig { + + /* + * Whether the Module is enabled + */ + bool enabled = 1; + } + /* * Audio Config for codec2 voice */ @@ -516,5 +527,10 @@ message ModuleConfig { */ AudioConfig audio = 8; + /* + * TODO: REPLACE + */ + RemoteHardwareConfig remote_hardware = 9; + } }