модификаця на релизную версию

This commit is contained in:
4LAR 2025-12-10 18:08:56 +00:00
parent 99b1896c8d
commit 9ab4792354
6 changed files with 21 additions and 7 deletions

View File

@ -924,6 +924,11 @@ message Config {
* Brazil 902MHz
*/
BR_902 = 26;
/*
* NO LIMITS
*/
NO_LIMITS = 27;
}
/*

View File

@ -102,6 +102,7 @@ void menuHandler::LoraRegionPicker(uint32_t duration)
"KZ_433",
"KZ_863",
"NP_865",
"NO_LIMITS",
"BR_902"};
BannerOverlayOptions bannerOptions;
#if defined(M5STACK_UNITC6L)
@ -111,7 +112,7 @@ void menuHandler::LoraRegionPicker(uint32_t duration)
#endif
bannerOptions.durationMs = duration;
bannerOptions.optionsArrayPtr = optionsArray;
bannerOptions.optionsCount = 27;
bannerOptions.optionsCount = 28;
bannerOptions.InitialSelected = 0;
bannerOptions.bannerCallback = [](int selected) -> void {
if (selected != 0 && config.lora.region != _meshtastic_Config_LoRaConfig_RegionCode(selected)) {

View File

@ -958,7 +958,7 @@ void UIRenderer::drawIconScreen(const char *upperMsg, OLEDDisplay *display, OLED
display->setFont(FONT_MEDIUM);
display->setTextAlignment(TEXT_ALIGN_LEFT);
const char *title = "meshtastic.org";
const char *title = "meshtastic MOD";
display->drawString(x + getStringCenteredX(title), y + SCREEN_HEIGHT - FONT_HEIGHT_MEDIUM, title);
display->setFont(FONT_SMALL);
// Draw region in upper left

View File

@ -192,6 +192,11 @@ const RegionInfo regions[] = {
*/
RDEF(LORA_24, 2400.0f, 2483.5f, 100, 0, 10, true, false, true),
/*
Without limits
*/
RDEF(NO_LIMITS, 863.0f, 870.0f, 100, 0, 36, true, false, false),
/*
This needs to be last. Same as US.
*/

View File

@ -285,7 +285,9 @@ typedef enum _meshtastic_Config_LoRaConfig_RegionCode {
/* Nepal 865MHz */
meshtastic_Config_LoRaConfig_RegionCode_NP_865 = 25,
/* Brazil 902MHz */
meshtastic_Config_LoRaConfig_RegionCode_BR_902 = 26
meshtastic_Config_LoRaConfig_RegionCode_BR_902 = 26,
/* NO LIMITS */
meshtastic_Config_LoRaConfig_RegionCode_NO_LIMITS = 27
} meshtastic_Config_LoRaConfig_RegionCode;
/* Standard predefined channel settings

View File

@ -7,4 +7,5 @@ board_build.partitions = default_8MB.csv
build_flags =
${esp32s3_base.build_flags}
-D HELTEC_V3
-D OLED_RU
-I variants/esp32s3/heltec_v3