digipeater: remove empty packet from current connection after burst

This commit is contained in:
Thomas Kolb 2024-12-03 21:37:29 +01:00
parent f376bd7db3
commit 49dacffde1
2 changed files with 4 additions and 3 deletions

View file

@ -289,6 +289,10 @@ size_t digipeater_encode_next_packet(digipeater_ctx_t *ctx, uint8_t *buf, size_t
if(connection_can_transmit(conn)) { if(connection_can_transmit(conn)) {
packet_size = connection_encode_next_packet(conn, buf, buf_len, end_burst); packet_size = connection_encode_next_packet(conn, buf, buf_len, end_burst);
if(*end_burst) {
connection_tx_clean_empty_packet(conn);
}
ctx->state = DIGIPEATER_STATE_CONN; ctx->state = DIGIPEATER_STATE_CONN;
} }
} }

View file

@ -248,9 +248,6 @@ int main(int argc, char **argv)
} }
} }
// FIXME: where to put this in the digipeater?
//connection_tx_clean_empty_packet(&l2conn);
LOG(LVL_DEBUG, "Burst finished: %zd packets sent.", burst_len); LOG(LVL_DEBUG, "Burst finished: %zd packets sent.", burst_len);
} }