main: check return value of layer2_tx_fill_packet_queue()
This commit is contained in:
parent
52f45cb433
commit
9990aa5fbb
|
@ -239,7 +239,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
// fill the TX queue from the TUN device
|
// 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((now > next_tx_switch_time) && (on_air || !layer1_rx_is_busy(&rx))) {
|
||||||
if(layer2_tx_can_transmit(&l2tx)) {
|
if(layer2_tx_can_transmit(&l2tx)) {
|
||||||
|
|
Loading…
Reference in a new issue