mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 04:15:53 +00:00
Merge branch 'master' into RememberDestination-Fix
This commit is contained in:
commit
ec39b5c9a0
@ -110,7 +110,7 @@ lib_deps =
|
|||||||
[device-ui_base]
|
[device-ui_base]
|
||||||
lib_deps =
|
lib_deps =
|
||||||
# renovate: datasource=git-refs depName=meshtastic/device-ui packageName=https://github.com/meshtastic/device-ui gitBranch=master
|
# renovate: datasource=git-refs depName=meshtastic/device-ui packageName=https://github.com/meshtastic/device-ui gitBranch=master
|
||||||
https://github.com/meshtastic/device-ui/archive/86a09a7360f92d10053fbbf8d74f67f85b0ceb09.zip
|
https://github.com/meshtastic/device-ui/archive/c75d545bf9e8d1fe20051c319f427f711113ff22.zip
|
||||||
|
|
||||||
; Common libs for environmental measurements in telemetry module
|
; Common libs for environmental measurements in telemetry module
|
||||||
[environmental_base]
|
[environmental_base]
|
||||||
|
@ -51,12 +51,14 @@ void menuHandler::LoraRegionPicker(uint32_t duration)
|
|||||||
"PH_915",
|
"PH_915",
|
||||||
"ANZ_433",
|
"ANZ_433",
|
||||||
"KZ_433",
|
"KZ_433",
|
||||||
"KZ_863"};
|
"KZ_863",
|
||||||
|
"NP_865",
|
||||||
|
"BR_902"};
|
||||||
BannerOverlayOptions bannerOptions;
|
BannerOverlayOptions bannerOptions;
|
||||||
bannerOptions.message = "Set the LoRa region";
|
bannerOptions.message = "Set the LoRa region";
|
||||||
bannerOptions.durationMs = duration;
|
bannerOptions.durationMs = duration;
|
||||||
bannerOptions.optionsArrayPtr = optionsArray;
|
bannerOptions.optionsArrayPtr = optionsArray;
|
||||||
bannerOptions.optionsCount = 25;
|
bannerOptions.optionsCount = 27;
|
||||||
bannerOptions.InitialSelected = 0;
|
bannerOptions.InitialSelected = 0;
|
||||||
bannerOptions.bannerCallback = [](int selected) -> void {
|
bannerOptions.bannerCallback = [](int selected) -> void {
|
||||||
if (selected != 0 && config.lora.region != _meshtastic_Config_LoRaConfig_RegionCode(selected)) {
|
if (selected != 0 && config.lora.region != _meshtastic_Config_LoRaConfig_RegionCode(selected)) {
|
||||||
|
@ -199,7 +199,7 @@ void ExpressLRSFiveWay::sendKey(input_broker_event key)
|
|||||||
void ExpressLRSFiveWay::toggleGPS()
|
void ExpressLRSFiveWay::toggleGPS()
|
||||||
{
|
{
|
||||||
#if HAS_GPS && !MESHTASTIC_EXCLUDE_GPS
|
#if HAS_GPS && !MESHTASTIC_EXCLUDE_GPS
|
||||||
if (!config.device.disable_triple_click && (gps != nullptr)) {
|
if (gps != nullptr) {
|
||||||
gps->toggleGpsMode();
|
gps->toggleGpsMode();
|
||||||
screen->startAlert("GPS Toggled");
|
screen->startAlert("GPS Toggled");
|
||||||
alerting = true;
|
alerting = true;
|
||||||
|
@ -628,11 +628,6 @@ void NodeDB::installDefaultConfig(bool preserveKey = false)
|
|||||||
#ifdef PIN_GPS_EN
|
#ifdef PIN_GPS_EN
|
||||||
config.position.gps_en_gpio = PIN_GPS_EN;
|
config.position.gps_en_gpio = PIN_GPS_EN;
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPS_POWER_TOGGLE
|
|
||||||
config.device.disable_triple_click = false;
|
|
||||||
#else
|
|
||||||
config.device.disable_triple_click = true;
|
|
||||||
#endif
|
|
||||||
#if defined(USERPREFS_CONFIG_GPS_MODE)
|
#if defined(USERPREFS_CONFIG_GPS_MODE)
|
||||||
config.position.gps_mode = USERPREFS_CONFIG_GPS_MODE;
|
config.position.gps_mode = USERPREFS_CONFIG_GPS_MODE;
|
||||||
#elif !HAS_GPS || GPS_DEFAULT_NOT_PRESENT
|
#elif !HAS_GPS || GPS_DEFAULT_NOT_PRESENT
|
||||||
|
@ -67,6 +67,7 @@ const RegionInfo regions[] = {
|
|||||||
/*
|
/*
|
||||||
https://www.iot.org.au/wp/wp-content/uploads/2016/12/IoTSpectrumFactSheet.pdf
|
https://www.iot.org.au/wp/wp-content/uploads/2016/12/IoTSpectrumFactSheet.pdf
|
||||||
https://iotalliance.org.nz/wp-content/uploads/sites/4/2019/05/IoT-Spectrum-in-NZ-Briefing-Paper.pdf
|
https://iotalliance.org.nz/wp-content/uploads/sites/4/2019/05/IoT-Spectrum-in-NZ-Briefing-Paper.pdf
|
||||||
|
Also used in Brazil.
|
||||||
*/
|
*/
|
||||||
RDEF(ANZ, 915.0f, 928.0f, 100, 0, 30, true, false, false),
|
RDEF(ANZ, 915.0f, 928.0f, 100, 0, 30, true, false, false),
|
||||||
|
|
||||||
@ -169,6 +170,21 @@ const RegionInfo regions[] = {
|
|||||||
*/
|
*/
|
||||||
RDEF(KZ_433, 433.075f, 434.775f, 100, 0, 10, true, false, false), RDEF(KZ_863, 863.0f, 868.0f, 100, 0, 30, true, false, true),
|
RDEF(KZ_433, 433.075f, 434.775f, 100, 0, 10, true, false, false), RDEF(KZ_863, 863.0f, 868.0f, 100, 0, 30, true, false, true),
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Nepal
|
||||||
|
865 MHz to 868 MHz frequency band for IoT (Internet of Things), M2M (Machine-to-Machine), and smart metering use, specifically in non-cellular mode.
|
||||||
|
https://www.nta.gov.np/uploads/contents/Radio-Frequency-Policy-2080-English.pdf
|
||||||
|
*/
|
||||||
|
RDEF(NP_865, 865.0f, 868.0f, 100, 0, 30, true, false, false),
|
||||||
|
|
||||||
|
/*
|
||||||
|
Brazil
|
||||||
|
902 - 907.5 MHz , 1W power limit, no duty cycle restrictions
|
||||||
|
https://github.com/meshtastic/firmware/issues/3741
|
||||||
|
*/
|
||||||
|
RDEF(BR_902, 902.0f, 907.5f, 100, 0, 30, true, false, false),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
2.4 GHZ WLAN Band equivalent. Only for SX128x chips.
|
2.4 GHZ WLAN Band equivalent. Only for SX128x chips.
|
||||||
*/
|
*/
|
||||||
|
@ -596,7 +596,6 @@ void AdminModule::handleSetConfig(const meshtastic_Config &c)
|
|||||||
if (config.device.button_gpio == c.payload_variant.device.button_gpio &&
|
if (config.device.button_gpio == c.payload_variant.device.button_gpio &&
|
||||||
config.device.buzzer_gpio == c.payload_variant.device.buzzer_gpio &&
|
config.device.buzzer_gpio == c.payload_variant.device.buzzer_gpio &&
|
||||||
config.device.role == c.payload_variant.device.role &&
|
config.device.role == c.payload_variant.device.role &&
|
||||||
config.device.disable_triple_click == c.payload_variant.device.disable_triple_click &&
|
|
||||||
config.device.rebroadcast_mode == c.payload_variant.device.rebroadcast_mode) {
|
config.device.rebroadcast_mode == c.payload_variant.device.rebroadcast_mode) {
|
||||||
requiresReboot = false;
|
requiresReboot = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user