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:
Jonathan Bennett
2024-08-31 15:04:35 -05:00
committed by GitHub
parent 33eb073535
commit b71e12c5e5
2 changed files with 6 additions and 0 deletions

View File

@@ -165,6 +165,9 @@ meshtastic_QueueStatus Router::getQueueStatus()
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
if (p->to == nodeDB->getNodeNum()) {
printPacket("Enqueued local", p);