From 742152daebe41d034a9b214974a79f91b4860d38 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Mon, 12 Sep 2022 00:08:19 +1000 Subject: [PATCH] Missing protos for requests --- admin.proto | 5 +++++ config.proto | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/admin.proto b/admin.proto index 3dc9f21..87cf0e6 100644 --- a/admin.proto +++ b/admin.proto @@ -244,5 +244,10 @@ message AdminMessage { * Tell the node to factory reset, all device settings will be returned to factory defaults. */ int32 factory_reset = 99; + + /* + * Tell the node to reset the nodedb. + */ + int32 nodedb_reset = 100; } } diff --git a/config.proto b/config.proto index 63fb0a4..4a024a9 100644 --- a/config.proto +++ b/config.proto @@ -341,6 +341,22 @@ message Config { OSGR = 5; } + /* + * Unit display preference + */ + enum DisplayUnits { + + /* + * Metric (Default) + */ + METRIC = 0; + + /* + * Imperial + */ + IMPERIAL = 1; + } + /* * Number of seconds the screen stays on after pressing the user button or receiving a message * 0 for default of one minute MAXUINT for always on @@ -363,6 +379,16 @@ message Config { * (top of display is heading direction) is used. */ bool compass_north_top = 4; + + /* + * Flip screen vertically, for cases that mount the screen upside down + */ + bool flip_screen = 5; + + /* + * Perferred display units + */ + DisplayUnits units = 6; } /*