* redesigned TRACE packet structure

Этот коммит содержится в:
Scott Powell
2025-03-17 17:56:12 +11:00
родитель 156741e563
Коммит fe4fdeb236
9 изменённых файлов: 71 добавлений и 129 удалений
-4
Просмотреть файл
@@ -710,10 +710,6 @@ protected:
}
}
void onContactTraceRecv(const ContactInfo& contact, uint32_t sender_timestamp, const uint8_t hash[], int8_t snr[], uint8_t path_len) override {
// TODO: write an out_frame
}
uint32_t calcFloodTimeoutMillisFor(uint32_t pkt_airtime_millis) const override {
return SEND_TIMEOUT_BASE_MILLIS + (FLOOD_SEND_TIMEOUT_FACTOR * pkt_airtime_millis);
}
-2
Просмотреть файл
@@ -273,8 +273,6 @@ protected:
if (pkt->getPayloadType() == PAYLOAD_TYPE_PATH || pkt->getPayloadType() == PAYLOAD_TYPE_REQ
|| pkt->getPayloadType() == PAYLOAD_TYPE_RESPONSE || pkt->getPayloadType() == PAYLOAD_TYPE_TXT_MSG) {
f.printf(" [%02X -> %02X]\n", (uint32_t)pkt->payload[1], (uint32_t)pkt->payload[0]);
} else if (pkt->getPayloadType() == PAYLOAD_TYPE_TRACE) {
f.printf(" [%02X -> %02X]\n", (uint32_t)pkt->payload[2], (uint32_t)pkt->payload[1]);
} else {
f.printf("\n");
}
-4
Просмотреть файл
@@ -285,10 +285,6 @@ protected:
// not supported
}
void onContactTraceRecv(const ContactInfo& contact, uint32_t sender_timestamp, const uint8_t hash[], int8_t snr[], uint8_t path_len) override {
// TODO: write an out_frame
}
uint32_t calcFloodTimeoutMillisFor(uint32_t pkt_airtime_millis) const override {
return SEND_TIMEOUT_BASE_MILLIS + (FLOOD_SEND_TIMEOUT_FACTOR * pkt_airtime_millis);
}