main: check return value of layer2_tx_fill_packet_queue()

This commit is contained in:
Simon Ruderich 2024-07-23 09:33:35 +02:00
parent 52f45cb433
commit 9990aa5fbb

View file

@ -239,7 +239,7 @@ int main(int argc, char **argv)
}
// fill the TX queue from the TUN device
layer2_tx_fill_packet_queue(&l2tx);
RESULT_CHECK(layer2_tx_fill_packet_queue(&l2tx));
if((now > next_tx_switch_time) && (on_air || !layer1_rx_is_busy(&rx))) {
if(layer2_tx_can_transmit(&l2tx)) {