* companion: bug fix for 'export contact'

This commit is contained in:
Scott Powell
2025-04-21 21:38:57 +10:00
parent 1e263cab2b
commit 631f593895

View File

@@ -1122,6 +1122,8 @@ public:
// export SELF
auto pkt = createSelfAdvert(_prefs.node_name, _prefs.node_lat, _prefs.node_lon);
if (pkt) {
pkt->header |= ROUTE_TYPE_FLOOD; // would normally be sent in this mode
out_frame[0] = RESP_CODE_EXPORT_CONTACT;
uint8_t out_len = pkt->writeTo(&out_frame[1]);
releasePacket(pkt); // undo the obtainNewPacket()