@@ -49,6 +49,8 @@ typedef enum _meshtastic_Language {
4949 meshtastic_Language_DUTCH = 12 ,
5050 /* Greek */
5151 meshtastic_Language_GREEK = 13 ,
52+ /* Norwegian */
53+ meshtastic_Language_NORWEGIAN = 14 ,
5254 /* Simplified Chinese (experimental) */
5355 meshtastic_Language_SIMPLIFIED_CHINESE = 30 ,
5456 /* Traditional Chinese (experimental) */
@@ -84,6 +86,7 @@ typedef struct _meshtastic_NodeHighlight {
8486 char node_name [16 ];
8587} meshtastic_NodeHighlight ;
8688
89+ typedef PB_BYTES_ARRAY_T (16 ) meshtastic_DeviceUIConfig_calibration_data_t ;
8790typedef struct _meshtastic_DeviceUIConfig {
8891 /* A version integer used to invalidate saved files when we make incompatible changes. */
8992 uint32_t version ;
@@ -109,6 +112,8 @@ typedef struct _meshtastic_DeviceUIConfig {
109112 /* Node list highlightening */
110113 bool has_node_highlight ;
111114 meshtastic_NodeHighlight node_highlight ;
115+ /* 8 integers for screen calibration data */
116+ meshtastic_DeviceUIConfig_calibration_data_t calibration_data ;
112117} meshtastic_DeviceUIConfig ;
113118
114119
@@ -132,10 +137,10 @@ extern "C" {
132137
133138
134139/* Initializer values for message structs */
135- #define meshtastic_DeviceUIConfig_init_default {0, 0, 0, 0, 0, 0, _meshtastic_Theme_MIN, 0, 0, 0, _meshtastic_Language_MIN, false, meshtastic_NodeFilter_init_default, false, meshtastic_NodeHighlight_init_default}
140+ #define meshtastic_DeviceUIConfig_init_default {0, 0, 0, 0, 0, 0, _meshtastic_Theme_MIN, 0, 0, 0, _meshtastic_Language_MIN, false, meshtastic_NodeFilter_init_default, false, meshtastic_NodeHighlight_init_default, {0, {0}} }
136141#define meshtastic_NodeFilter_init_default {0, 0, 0, 0, 0, ""}
137142#define meshtastic_NodeHighlight_init_default {0, 0, 0, 0, ""}
138- #define meshtastic_DeviceUIConfig_init_zero {0, 0, 0, 0, 0, 0, _meshtastic_Theme_MIN, 0, 0, 0, _meshtastic_Language_MIN, false, meshtastic_NodeFilter_init_zero, false, meshtastic_NodeHighlight_init_zero}
143+ #define meshtastic_DeviceUIConfig_init_zero {0, 0, 0, 0, 0, 0, _meshtastic_Theme_MIN, 0, 0, 0, _meshtastic_Language_MIN, false, meshtastic_NodeFilter_init_zero, false, meshtastic_NodeHighlight_init_zero, {0, {0}} }
139144#define meshtastic_NodeFilter_init_zero {0, 0, 0, 0, 0, ""}
140145#define meshtastic_NodeHighlight_init_zero {0, 0, 0, 0, ""}
141146
@@ -164,6 +169,7 @@ extern "C" {
164169#define meshtastic_DeviceUIConfig_language_tag 11
165170#define meshtastic_DeviceUIConfig_node_filter_tag 12
166171#define meshtastic_DeviceUIConfig_node_highlight_tag 13
172+ #define meshtastic_DeviceUIConfig_calibration_data_tag 14
167173
168174/* Struct field encoding specification for nanopb */
169175#define meshtastic_DeviceUIConfig_FIELDLIST (X , a ) \
@@ -179,7 +185,8 @@ X(a, STATIC, SINGULAR, BOOL, banner_enabled, 9) \
179185X(a, STATIC, SINGULAR, UINT32, ring_tone_id, 10) \
180186X(a, STATIC, SINGULAR, UENUM, language, 11) \
181187X(a, STATIC, OPTIONAL, MESSAGE, node_filter, 12) \
182- X(a, STATIC, OPTIONAL, MESSAGE, node_highlight, 13)
188+ X(a, STATIC, OPTIONAL, MESSAGE, node_highlight, 13) \
189+ X(a, STATIC, SINGULAR, BYTES, calibration_data, 14)
183190#define meshtastic_DeviceUIConfig_CALLBACK NULL
184191#define meshtastic_DeviceUIConfig_DEFAULT NULL
185192#define meshtastic_DeviceUIConfig_node_filter_MSGTYPE meshtastic_NodeFilter
@@ -215,7 +222,7 @@ extern const pb_msgdesc_t meshtastic_NodeHighlight_msg;
215222
216223/* Maximum encoded size of messages (where known) */
217224#define MESHTASTIC_MESHTASTIC_DEVICE_UI_PB_H_MAX_SIZE meshtastic_DeviceUIConfig_size
218- #define meshtastic_DeviceUIConfig_size 99
225+ #define meshtastic_DeviceUIConfig_size 117
219226#define meshtastic_NodeFilter_size 36
220227#define meshtastic_NodeHighlight_size 25
221228
0 commit comments