SFD timestamp
Only save SFD timestamp when we are actually receiving.
This commit is contained in:
parent
b0a673ca5c
commit
73d36ebb6b
@ -1075,8 +1075,10 @@ cc2538_rf_rx_tx_isr(void)
|
||||
|
||||
#if CC2538_RF_CONF_SFD_TIMESTAMPS
|
||||
if(poll_mode) {
|
||||
if(REG(RFCORE_XREG_FSMSTAT1) & RFCORE_XREG_FSMSTAT1_RX_ACTIVE) {
|
||||
cc2538_sfd_rtime = RTIMER_NOW();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if(!poll_mode) {
|
||||
|
Loading…
Reference in New Issue
Block a user