From c90728807dd68067124b9f76a43dbb1cbe03564a Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Mon, 2 Sep 2024 16:35:18 -0500 Subject: [PATCH] Own node should be favorited and have zero hops away --- src/mesh/PhoneAPI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesh/PhoneAPI.cpp b/src/mesh/PhoneAPI.cpp index 0ca89b1efd..30af9d7b02 100644 --- a/src/mesh/PhoneAPI.cpp +++ b/src/mesh/PhoneAPI.cpp @@ -194,6 +194,8 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf) auto us = nodeDB->readNextMeshNode(readIndex); if (us) { nodeInfoForPhone = TypeConversions::ConvertToNodeInfo(us); + nodeInfoForPhone.hops_away = 0; + nodeInfoForPhone.is_favorite = true; fromRadioScratch.which_payload_variant = meshtastic_FromRadio_node_info_tag; fromRadioScratch.node_info = nodeInfoForPhone; // Should allow us to resume sending NodeInfo in STATE_SEND_OTHER_NODEINFOS