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:
parent
cc5d75f677
commit
fc8ccac560
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user