mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21:40 +00:00
Do not send when region unset
This commit is contained in:
parent
afcd7acfab
commit
7aa4e94e45
@ -106,9 +106,6 @@ ErrorCode RadioLibInterface::send(meshtastic_MeshPacket *p)
|
|||||||
|
|
||||||
#ifndef DISABLE_WELCOME_UNSET
|
#ifndef DISABLE_WELCOME_UNSET
|
||||||
|
|
||||||
if (config.lora.region != meshtastic_Config_LoRaConfig_RegionCode_UNSET) {
|
|
||||||
if (disabled || !config.lora.tx_enabled) {
|
|
||||||
|
|
||||||
if (config.lora.region != meshtastic_Config_LoRaConfig_RegionCode_UNSET) {
|
if (config.lora.region != meshtastic_Config_LoRaConfig_RegionCode_UNSET) {
|
||||||
if (disabled || !config.lora.tx_enabled) {
|
if (disabled || !config.lora.tx_enabled) {
|
||||||
LOG_WARN("send - !config.lora.tx_enabled\n");
|
LOG_WARN("send - !config.lora.tx_enabled\n");
|
||||||
@ -121,8 +118,6 @@ ErrorCode RadioLibInterface::send(meshtastic_MeshPacket *p)
|
|||||||
packetPool.release(p);
|
packetPool.release(p);
|
||||||
return ERRNO_DISABLED;
|
return ERRNO_DISABLED;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user