tsch: report MAC_TX_ERR if prepare() fails

Before this fix, uninitialized mac_tx_status was reported in this case.
This commit is contained in:
Toshio Ito 2018-10-18 16:05:45 +09:00
parent cc5d75f677
commit fc8ccac560

View File

@ -643,6 +643,8 @@ PT_THREAD(tsch_tx_slot(struct pt *pt, struct rtimer *t))
mac_tx_status = MAC_TX_ERR;
}
}
}else {
mac_tx_status = MAC_TX_ERR;
}
}