Skip to content

Commit 52f2fa9

Browse files
committed
Reduce TX packet counter in case interface is not active
1 parent a784a33 commit 52f2fa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/csp_if_cblk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ int csp_if_cblk_tx(csp_iface_t * iface, uint16_t via, csp_packet_t *packet, int
4545

4646
if (ifdata->cblk_tx_is_active != NULL && !ifdata->cblk_tx_is_active(iface)) {
4747

48+
iface->tx--;
4849
if (from_me) {
4950
forward_other_ifcs(iface, packet);
5051
} else {

0 commit comments

Comments
 (0)