avoid spurious warnings of trying to start the PRACH when it is already running during handover

master
Francisco Paisana 4 years ago
parent fddcc3d8ea
commit fca1273b3e

@ -98,6 +98,8 @@ public:
void notify_phy_config_completed(uint32_t task_id); void notify_phy_config_completed(uint32_t task_id);
void notify_ra_completed(uint32_t task_id); void notify_ra_completed(uint32_t task_id);
bool is_idle() const { return state == IDLE; }
private: private:
void state_pdcch_setup(); void state_pdcch_setup();
void state_response_reception(uint32_t tti); void state_response_reception(uint32_t tti);

@ -95,7 +95,7 @@ void sr_proc::step(uint32_t tti)
reset(); reset();
} }
} }
} else { } else if (ra->is_idle()) {
Info("SR: PUCCH not configured. Starting RA procedure\n"); Info("SR: PUCCH not configured. Starting RA procedure\n");
ra->start_mac_order(); ra->start_mac_order();
reset(); reset();

Loading…
Cancel
Save