adding only hop_start, per @GUVWAF

pull/4088/head
John Gorkos - AB0OO 2024-06-12 12:59:52 -07:00
rodzic 871f6854b5
commit d80bcd7d67
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -903,7 +903,6 @@ std::string MQTT::meshPacketToJson(meshtastic_MeshPacket *mp)
if (mp->hop_start != 0 && mp->hop_limit <= mp->hop_start)
jsonObj["hops_away"] = new JSONValue((unsigned int)(mp->hop_start - mp->hop_limit));
jsonObj["hop_start"] = new JSONValue((unsigned int)(mp->hop_start));
jsonObj["hop_limit"] = new JSONValue((unsigned int)(mp->hop_limit));
// serialize and write it to the stream
JSONValue *value = new JSONValue(jsonObj);