mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-12 15:41:24 +00:00
Phone admin work (#4599)
* Don't throw an error on the sessionkey admin tag * Throw an error on packet sent to 0
This commit is contained in:
parent
33eb073535
commit
b71e12c5e5
@ -259,6 +259,9 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
|
|||||||
fromRadioScratch.config.which_payload_variant = meshtastic_Config_security_tag;
|
fromRadioScratch.config.which_payload_variant = meshtastic_Config_security_tag;
|
||||||
fromRadioScratch.config.payload_variant.security = config.security;
|
fromRadioScratch.config.payload_variant.security = config.security;
|
||||||
break;
|
break;
|
||||||
|
case meshtastic_Config_sessionkey_tag:
|
||||||
|
fromRadioScratch.config.which_payload_variant = meshtastic_Config_sessionkey_tag;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
LOG_ERROR("Unknown config type %d\n", config_state);
|
LOG_ERROR("Unknown config type %d\n", config_state);
|
||||||
}
|
}
|
||||||
|
@ -165,6 +165,9 @@ meshtastic_QueueStatus Router::getQueueStatus()
|
|||||||
|
|
||||||
ErrorCode Router::sendLocal(meshtastic_MeshPacket *p, RxSource src)
|
ErrorCode Router::sendLocal(meshtastic_MeshPacket *p, RxSource src)
|
||||||
{
|
{
|
||||||
|
if (p->to == 0) {
|
||||||
|
LOG_ERROR("Packet received with to: of 0!\n");
|
||||||
|
}
|
||||||
// No need to deliver externally if the destination is the local node
|
// No need to deliver externally if the destination is the local node
|
||||||
if (p->to == nodeDB->getNodeNum()) {
|
if (p->to == nodeDB->getNodeNum()) {
|
||||||
printPacket("Enqueued local", p);
|
printPacket("Enqueued local", p);
|
||||||
|
Loading…
Reference in New Issue
Block a user