From 472fb6e5b0a07cee61405906b85c598ec8aa1b0b Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Sat, 6 Aug 2022 16:31:40 +1000 Subject: [PATCH 1/3] Update protobufs & fix build --- protobufs | 2 +- src/graphics/Screen.cpp | 8 +++--- src/mesh/generated/config.pb.c | 1 + src/mesh/generated/config.pb.h | 47 ++++++++++++++++++++------------ src/mesh/http/ContentHandler.cpp | 2 +- src/mesh/http/WiFiAPClient.cpp | 14 ++++++---- 6 files changed, 45 insertions(+), 29 deletions(-) diff --git a/protobufs b/protobufs index 59293c211..27323ef01 160000 --- a/protobufs +++ b/protobufs @@ -1 +1 @@ -Subproject commit 59293c211a7db32e76a0815f6dac43899eba16dd +Subproject commit 27323ef01712793a3a547ab63f2dbab1bbd21b74 diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 1fa27339d..52fad857d 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -1370,7 +1370,7 @@ void DebugInfo::drawFrameWiFi(OLEDDisplay *display, OLEDDisplayUiState *state, i if (isSoftAPForced()) { display->drawString(x, y, String("WiFi: Software AP (Admin)")); - } else if (config.wifi.ap_mode) { + } else if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden) { display->drawString(x, y, String("WiFi: Software AP")); } else if (WiFi.status() != WL_CONNECTED) { display->drawString(x, y, String("WiFi: Not Connected")); @@ -1393,8 +1393,8 @@ void DebugInfo::drawFrameWiFi(OLEDDisplay *display, OLEDDisplayUiState *state, i - WL_NO_SHIELD: assigned when no WiFi shield is present; */ - if (WiFi.status() == WL_CONNECTED || isSoftAPForced() || config.wifi.ap_mode) { - if (config.wifi.ap_mode || isSoftAPForced()) { + if (WiFi.status() == WL_CONNECTED || isSoftAPForced() || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden) { + if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden || isSoftAPForced()) { display->drawString(x, y + FONT_HEIGHT_SMALL * 1, "IP: " + String(WiFi.softAPIP().toString().c_str())); // Number of connections to the AP. Default max for the esp32 is 4 @@ -1486,7 +1486,7 @@ void DebugInfo::drawFrameWiFi(OLEDDisplay *display, OLEDDisplayUiState *state, i } } else { - if (config.wifi.ap_mode) { + if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden) { if ((millis() / 10000) % 2) { display->drawString(x, y + FONT_HEIGHT_SMALL * 2, "SSID: " + String(wifiName)); } else { diff --git a/src/mesh/generated/config.pb.c b/src/mesh/generated/config.pb.c index cc8ba44c4..e6503667c 100644 --- a/src/mesh/generated/config.pb.c +++ b/src/mesh/generated/config.pb.c @@ -34,3 +34,4 @@ PB_BIND(Config_LoRaConfig, Config_LoRaConfig, 2) + diff --git a/src/mesh/generated/config.pb.h b/src/mesh/generated/config.pb.h index 32eecbbe9..13bc34800 100644 --- a/src/mesh/generated/config.pb.h +++ b/src/mesh/generated/config.pb.h @@ -51,6 +51,13 @@ typedef enum _Config_PowerConfig_ChargeCurrent { Config_PowerConfig_ChargeCurrent_MA1320 = 16 } Config_PowerConfig_ChargeCurrent; +typedef enum _Config_WiFiConfig_WiFiMode { + Config_WiFiConfig_WiFiMode_Off = 0, + Config_WiFiConfig_WiFiMode_Client = 1, + Config_WiFiConfig_WiFiMode_AccessPoint = 2, + Config_WiFiConfig_WiFiMode_AccessPointHidden = 3 +} Config_WiFiConfig_WiFiMode; + typedef enum _Config_DisplayConfig_GpsCoordinateFormat { Config_DisplayConfig_GpsCoordinateFormat_GpsFormatDec = 0, Config_DisplayConfig_GpsCoordinateFormat_GpsFormatDMS = 1, @@ -99,6 +106,7 @@ typedef struct _Config_DisplayConfig { uint32_t screen_on_secs; Config_DisplayConfig_GpsCoordinateFormat gps_format; uint32_t auto_screen_carousel_secs; + bool compass_north_top; } Config_DisplayConfig; typedef struct _Config_LoRaConfig { @@ -138,10 +146,9 @@ typedef struct _Config_PowerConfig { } Config_PowerConfig; typedef struct _Config_WiFiConfig { + Config_WiFiConfig_WiFiMode mode; char ssid[33]; char psk[64]; - bool ap_mode; - bool ap_hidden; } Config_WiFiConfig; typedef struct _Config { @@ -170,6 +177,10 @@ typedef struct _Config { #define _Config_PowerConfig_ChargeCurrent_MAX Config_PowerConfig_ChargeCurrent_MA1320 #define _Config_PowerConfig_ChargeCurrent_ARRAYSIZE ((Config_PowerConfig_ChargeCurrent)(Config_PowerConfig_ChargeCurrent_MA1320+1)) +#define _Config_WiFiConfig_WiFiMode_MIN Config_WiFiConfig_WiFiMode_Off +#define _Config_WiFiConfig_WiFiMode_MAX Config_WiFiConfig_WiFiMode_AccessPointHidden +#define _Config_WiFiConfig_WiFiMode_ARRAYSIZE ((Config_WiFiConfig_WiFiMode)(Config_WiFiConfig_WiFiMode_AccessPointHidden+1)) + #define _Config_DisplayConfig_GpsCoordinateFormat_MIN Config_DisplayConfig_GpsCoordinateFormat_GpsFormatDec #define _Config_DisplayConfig_GpsCoordinateFormat_MAX Config_DisplayConfig_GpsCoordinateFormat_GpsFormatOSGR #define _Config_DisplayConfig_GpsCoordinateFormat_ARRAYSIZE ((Config_DisplayConfig_GpsCoordinateFormat)(Config_DisplayConfig_GpsCoordinateFormat_GpsFormatOSGR+1)) @@ -192,15 +203,15 @@ extern "C" { #define Config_DeviceConfig_init_default {_Config_DeviceConfig_Role_MIN, 0, 0, 0, ""} #define Config_PositionConfig_init_default {0, 0, 0, 0, 0, 0, 0} #define Config_PowerConfig_init_default {_Config_PowerConfig_ChargeCurrent_MIN, 0, 0, 0, 0, 0, 0, 0, 0} -#define Config_WiFiConfig_init_default {"", "", 0, 0} -#define Config_DisplayConfig_init_default {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0} +#define Config_WiFiConfig_init_default {_Config_WiFiConfig_WiFiMode_MIN, "", ""} +#define Config_DisplayConfig_init_default {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0} #define Config_LoRaConfig_init_default {0, _Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, {0, 0, 0}} #define Config_init_zero {0, {Config_DeviceConfig_init_zero}} #define Config_DeviceConfig_init_zero {_Config_DeviceConfig_Role_MIN, 0, 0, 0, ""} #define Config_PositionConfig_init_zero {0, 0, 0, 0, 0, 0, 0} #define Config_PowerConfig_init_zero {_Config_PowerConfig_ChargeCurrent_MIN, 0, 0, 0, 0, 0, 0, 0, 0} -#define Config_WiFiConfig_init_zero {"", "", 0, 0} -#define Config_DisplayConfig_init_zero {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0} +#define Config_WiFiConfig_init_zero {_Config_WiFiConfig_WiFiMode_MIN, "", ""} +#define Config_DisplayConfig_init_zero {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0} #define Config_LoRaConfig_init_zero {0, _Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, {0, 0, 0}} /* Field tags (for use in manual encoding/decoding) */ @@ -212,6 +223,7 @@ extern "C" { #define Config_DisplayConfig_screen_on_secs_tag 1 #define Config_DisplayConfig_gps_format_tag 2 #define Config_DisplayConfig_auto_screen_carousel_secs_tag 3 +#define Config_DisplayConfig_compass_north_top_tag 4 #define Config_LoRaConfig_tx_power_tag 1 #define Config_LoRaConfig_modem_preset_tag 2 #define Config_LoRaConfig_bandwidth_tag 3 @@ -238,10 +250,9 @@ extern "C" { #define Config_PowerConfig_sds_secs_tag 10 #define Config_PowerConfig_ls_secs_tag 11 #define Config_PowerConfig_min_wake_secs_tag 12 -#define Config_WiFiConfig_ssid_tag 1 -#define Config_WiFiConfig_psk_tag 2 -#define Config_WiFiConfig_ap_mode_tag 3 -#define Config_WiFiConfig_ap_hidden_tag 4 +#define Config_WiFiConfig_mode_tag 1 +#define Config_WiFiConfig_ssid_tag 2 +#define Config_WiFiConfig_psk_tag 3 #define Config_device_tag 1 #define Config_position_tag 2 #define Config_power_tag 3 @@ -300,17 +311,17 @@ X(a, STATIC, SINGULAR, UINT32, min_wake_secs, 12) #define Config_PowerConfig_DEFAULT NULL #define Config_WiFiConfig_FIELDLIST(X, a) \ -X(a, STATIC, SINGULAR, STRING, ssid, 1) \ -X(a, STATIC, SINGULAR, STRING, psk, 2) \ -X(a, STATIC, SINGULAR, BOOL, ap_mode, 3) \ -X(a, STATIC, SINGULAR, BOOL, ap_hidden, 4) +X(a, STATIC, SINGULAR, UENUM, mode, 1) \ +X(a, STATIC, SINGULAR, STRING, ssid, 2) \ +X(a, STATIC, SINGULAR, STRING, psk, 3) #define Config_WiFiConfig_CALLBACK NULL #define Config_WiFiConfig_DEFAULT NULL #define Config_DisplayConfig_FIELDLIST(X, a) \ X(a, STATIC, SINGULAR, UINT32, screen_on_secs, 1) \ X(a, STATIC, SINGULAR, UENUM, gps_format, 2) \ -X(a, STATIC, SINGULAR, UINT32, auto_screen_carousel_secs, 3) +X(a, STATIC, SINGULAR, UINT32, auto_screen_carousel_secs, 3) \ +X(a, STATIC, SINGULAR, BOOL, compass_north_top, 4) #define Config_DisplayConfig_CALLBACK NULL #define Config_DisplayConfig_DEFAULT NULL @@ -347,12 +358,12 @@ extern const pb_msgdesc_t Config_LoRaConfig_msg; /* Maximum encoded size of messages (where known) */ #define Config_DeviceConfig_size 42 -#define Config_DisplayConfig_size 14 +#define Config_DisplayConfig_size 16 #define Config_LoRaConfig_size 67 #define Config_PositionConfig_size 30 #define Config_PowerConfig_size 45 -#define Config_WiFiConfig_size 103 -#define Config_size 105 +#define Config_WiFiConfig_size 101 +#define Config_size 103 #ifdef __cplusplus } /* extern "C" */ diff --git a/src/mesh/http/ContentHandler.cpp b/src/mesh/http/ContentHandler.cpp index ea39775a5..21e4d84b2 100644 --- a/src/mesh/http/ContentHandler.cpp +++ b/src/mesh/http/ContentHandler.cpp @@ -610,7 +610,7 @@ void handleReport(HTTPRequest *req, HTTPResponse *res) // data->wifi String ipStr; - if (config.wifi.ap_mode || isSoftAPForced()) { + if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden || isSoftAPForced()) { ipStr = String(WiFi.softAPIP().toString()); } else { ipStr = String(WiFi.localIP().toString()); diff --git a/src/mesh/http/WiFiAPClient.cpp b/src/mesh/http/WiFiAPClient.cpp index 9f610e5ce..27bdb377a 100644 --- a/src/mesh/http/WiFiAPClient.cpp +++ b/src/mesh/http/WiFiAPClient.cpp @@ -191,10 +191,14 @@ bool initWifi(bool forceSoftAP) if (forceSoftAP) { DEBUG_MSG("WiFi ... Forced AP Mode\n"); - } else if (config.wifi.ap_mode) { + } else if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint) { DEBUG_MSG("WiFi ... AP Mode\n"); - } else { + } else if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden) { + DEBUG_MSG("WiFi ... Hidden AP Mode\n"); + } else if (config.wifi.mode == Config_WiFiConfig_WiFiMode_Client) { DEBUG_MSG("WiFi ... Client Mode\n"); + } else { + DEBUG_MSG("WiFi ... WiFi Disabled\n"); } createSSLCert(); @@ -203,7 +207,7 @@ bool initWifi(bool forceSoftAP) wifiPsw = NULL; if (*wifiName || forceSoftAP) { - if (config.wifi.ap_mode || forceSoftAP) { + if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden || forceSoftAP) { IPAddress apIP(192, 168, 42, 1); WiFi.onEvent(WiFiEvent); @@ -218,7 +222,7 @@ bool initWifi(bool forceSoftAP) } else { // If AP is configured to be hidden hidden - if (config.wifi.ap_hidden) { + if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden) { // The configurations on softAP are from the espresif library int ok = WiFi.softAP(wifiName, wifiPsw, 1, 1, 4); @@ -373,7 +377,7 @@ static void WiFiEvent(WiFiEvent_t event) void handleDNSResponse() { - if (config.wifi.ap_mode || isSoftAPForced()) { + if (config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPoint || config.wifi.mode == Config_WiFiConfig_WiFiMode_AccessPointHidden || isSoftAPForced()) { dnsServer.processNextRequest(); } } From 4c215530f67184614ef07edbec026e887b0698b0 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Sat, 6 Aug 2022 16:35:52 +1000 Subject: [PATCH 2/3] Update protobufs --- protobufs | 2 +- src/mesh/generated/config.pb.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protobufs b/protobufs index 27323ef01..a8c022fb7 160000 --- a/protobufs +++ b/protobufs @@ -1 +1 @@ -Subproject commit 27323ef01712793a3a547ab63f2dbab1bbd21b74 +Subproject commit a8c022fb719a8e9fc83ad0b51c4dd03a23d82737 diff --git a/src/mesh/generated/config.pb.h b/src/mesh/generated/config.pb.h index 13bc34800..3149c54ff 100644 --- a/src/mesh/generated/config.pb.h +++ b/src/mesh/generated/config.pb.h @@ -52,7 +52,7 @@ typedef enum _Config_PowerConfig_ChargeCurrent { } Config_PowerConfig_ChargeCurrent; typedef enum _Config_WiFiConfig_WiFiMode { - Config_WiFiConfig_WiFiMode_Off = 0, + Config_WiFiConfig_WiFiMode_Disabled = 0, Config_WiFiConfig_WiFiMode_Client = 1, Config_WiFiConfig_WiFiMode_AccessPoint = 2, Config_WiFiConfig_WiFiMode_AccessPointHidden = 3 @@ -177,7 +177,7 @@ typedef struct _Config { #define _Config_PowerConfig_ChargeCurrent_MAX Config_PowerConfig_ChargeCurrent_MA1320 #define _Config_PowerConfig_ChargeCurrent_ARRAYSIZE ((Config_PowerConfig_ChargeCurrent)(Config_PowerConfig_ChargeCurrent_MA1320+1)) -#define _Config_WiFiConfig_WiFiMode_MIN Config_WiFiConfig_WiFiMode_Off +#define _Config_WiFiConfig_WiFiMode_MIN Config_WiFiConfig_WiFiMode_Disabled #define _Config_WiFiConfig_WiFiMode_MAX Config_WiFiConfig_WiFiMode_AccessPointHidden #define _Config_WiFiConfig_WiFiMode_ARRAYSIZE ((Config_WiFiConfig_WiFiMode)(Config_WiFiConfig_WiFiMode_AccessPointHidden+1)) From ca1e687fd4d87e79c2277682354d2f41830c7087 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Sat, 6 Aug 2022 21:29:59 +1000 Subject: [PATCH 3/3] update protobufs --- protobufs | 2 +- src/mesh/generated/config.pb.h | 32 ++++++++++++++++--------------- src/mesh/generated/localonly.pb.h | 2 +- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/protobufs b/protobufs index a8c022fb7..6bddcd264 160000 --- a/protobufs +++ b/protobufs @@ -1 +1 @@ -Subproject commit a8c022fb719a8e9fc83ad0b51c4dd03a23d82737 +Subproject commit 6bddcd2647af44cb9997e08871897a3aa2157362 diff --git a/src/mesh/generated/config.pb.h b/src/mesh/generated/config.pb.h index 3149c54ff..bc24c844c 100644 --- a/src/mesh/generated/config.pb.h +++ b/src/mesh/generated/config.pb.h @@ -52,10 +52,9 @@ typedef enum _Config_PowerConfig_ChargeCurrent { } Config_PowerConfig_ChargeCurrent; typedef enum _Config_WiFiConfig_WiFiMode { - Config_WiFiConfig_WiFiMode_Disabled = 0, - Config_WiFiConfig_WiFiMode_Client = 1, - Config_WiFiConfig_WiFiMode_AccessPoint = 2, - Config_WiFiConfig_WiFiMode_AccessPointHidden = 3 + Config_WiFiConfig_WiFiMode_Client = 0, + Config_WiFiConfig_WiFiMode_AccessPoint = 1, + Config_WiFiConfig_WiFiMode_AccessPointHidden = 2 } Config_WiFiConfig_WiFiMode; typedef enum _Config_DisplayConfig_GpsCoordinateFormat { @@ -146,6 +145,7 @@ typedef struct _Config_PowerConfig { } Config_PowerConfig; typedef struct _Config_WiFiConfig { + bool enabled; Config_WiFiConfig_WiFiMode mode; char ssid[33]; char psk[64]; @@ -177,7 +177,7 @@ typedef struct _Config { #define _Config_PowerConfig_ChargeCurrent_MAX Config_PowerConfig_ChargeCurrent_MA1320 #define _Config_PowerConfig_ChargeCurrent_ARRAYSIZE ((Config_PowerConfig_ChargeCurrent)(Config_PowerConfig_ChargeCurrent_MA1320+1)) -#define _Config_WiFiConfig_WiFiMode_MIN Config_WiFiConfig_WiFiMode_Disabled +#define _Config_WiFiConfig_WiFiMode_MIN Config_WiFiConfig_WiFiMode_Client #define _Config_WiFiConfig_WiFiMode_MAX Config_WiFiConfig_WiFiMode_AccessPointHidden #define _Config_WiFiConfig_WiFiMode_ARRAYSIZE ((Config_WiFiConfig_WiFiMode)(Config_WiFiConfig_WiFiMode_AccessPointHidden+1)) @@ -203,14 +203,14 @@ extern "C" { #define Config_DeviceConfig_init_default {_Config_DeviceConfig_Role_MIN, 0, 0, 0, ""} #define Config_PositionConfig_init_default {0, 0, 0, 0, 0, 0, 0} #define Config_PowerConfig_init_default {_Config_PowerConfig_ChargeCurrent_MIN, 0, 0, 0, 0, 0, 0, 0, 0} -#define Config_WiFiConfig_init_default {_Config_WiFiConfig_WiFiMode_MIN, "", ""} +#define Config_WiFiConfig_init_default {0, _Config_WiFiConfig_WiFiMode_MIN, "", ""} #define Config_DisplayConfig_init_default {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0} #define Config_LoRaConfig_init_default {0, _Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, {0, 0, 0}} #define Config_init_zero {0, {Config_DeviceConfig_init_zero}} #define Config_DeviceConfig_init_zero {_Config_DeviceConfig_Role_MIN, 0, 0, 0, ""} #define Config_PositionConfig_init_zero {0, 0, 0, 0, 0, 0, 0} #define Config_PowerConfig_init_zero {_Config_PowerConfig_ChargeCurrent_MIN, 0, 0, 0, 0, 0, 0, 0, 0} -#define Config_WiFiConfig_init_zero {_Config_WiFiConfig_WiFiMode_MIN, "", ""} +#define Config_WiFiConfig_init_zero {0, _Config_WiFiConfig_WiFiMode_MIN, "", ""} #define Config_DisplayConfig_init_zero {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0} #define Config_LoRaConfig_init_zero {0, _Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, {0, 0, 0}} @@ -250,9 +250,10 @@ extern "C" { #define Config_PowerConfig_sds_secs_tag 10 #define Config_PowerConfig_ls_secs_tag 11 #define Config_PowerConfig_min_wake_secs_tag 12 -#define Config_WiFiConfig_mode_tag 1 -#define Config_WiFiConfig_ssid_tag 2 -#define Config_WiFiConfig_psk_tag 3 +#define Config_WiFiConfig_enabled_tag 1 +#define Config_WiFiConfig_mode_tag 2 +#define Config_WiFiConfig_ssid_tag 3 +#define Config_WiFiConfig_psk_tag 4 #define Config_device_tag 1 #define Config_position_tag 2 #define Config_power_tag 3 @@ -311,9 +312,10 @@ X(a, STATIC, SINGULAR, UINT32, min_wake_secs, 12) #define Config_PowerConfig_DEFAULT NULL #define Config_WiFiConfig_FIELDLIST(X, a) \ -X(a, STATIC, SINGULAR, UENUM, mode, 1) \ -X(a, STATIC, SINGULAR, STRING, ssid, 2) \ -X(a, STATIC, SINGULAR, STRING, psk, 3) +X(a, STATIC, SINGULAR, BOOL, enabled, 1) \ +X(a, STATIC, SINGULAR, UENUM, mode, 2) \ +X(a, STATIC, SINGULAR, STRING, ssid, 3) \ +X(a, STATIC, SINGULAR, STRING, psk, 4) #define Config_WiFiConfig_CALLBACK NULL #define Config_WiFiConfig_DEFAULT NULL @@ -362,8 +364,8 @@ extern const pb_msgdesc_t Config_LoRaConfig_msg; #define Config_LoRaConfig_size 67 #define Config_PositionConfig_size 30 #define Config_PowerConfig_size 45 -#define Config_WiFiConfig_size 101 -#define Config_size 103 +#define Config_WiFiConfig_size 103 +#define Config_size 105 #ifdef __cplusplus } /* extern "C" */ diff --git a/src/mesh/generated/localonly.pb.h b/src/mesh/generated/localonly.pb.h index 7e6d18d23..71c845f30 100644 --- a/src/mesh/generated/localonly.pb.h +++ b/src/mesh/generated/localonly.pb.h @@ -138,7 +138,7 @@ extern const pb_msgdesc_t LocalModuleConfig_msg; #define LocalModuleConfig_fields &LocalModuleConfig_msg /* Maximum encoded size of messages (where known) */ -#define LocalConfig_size 319 +#define LocalConfig_size 321 #define LocalModuleConfig_size 268 #ifdef __cplusplus