Skip to content
Snippets Groups Projects
Commit fc8ccac5 authored by Toshio Ito's avatar Toshio Ito
Browse files

tsch: report MAC_TX_ERR if prepare() fails

Before this fix, uninitialized mac_tx_status was reported in this case.
parent cc5d75f6
No related branches found
No related tags found
No related merge requests found
...@@ -643,6 +643,8 @@ PT_THREAD(tsch_tx_slot(struct pt *pt, struct rtimer *t)) ...@@ -643,6 +643,8 @@ PT_THREAD(tsch_tx_slot(struct pt *pt, struct rtimer *t))
mac_tx_status = MAC_TX_ERR; mac_tx_status = MAC_TX_ERR;
} }
} }
}else {
mac_tx_status = MAC_TX_ERR;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment