Implement optional hops_away on NodeInfo/Lite (#4747)

* Implement optional hops_away on NodeInfo/Lite

* Trunk
This commit is contained in:
Ben Meadors
2024-09-17 12:08:04 -05:00
committed by GitHub
parent f5016763fd
commit 50fb4ab22a
3 changed files with 9 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
auto us = nodeDB->readNextMeshNode(readIndex);
if (us) {
nodeInfoForPhone = TypeConversions::ConvertToNodeInfo(us);
nodeInfoForPhone.hops_away = 0;
nodeInfoForPhone.has_hops_away = false;
nodeInfoForPhone.is_favorite = true;
fromRadioScratch.which_payload_variant = meshtastic_FromRadio_node_info_tag;
fromRadioScratch.node_info = nodeInfoForPhone;