sync: update log TTI before logging first message

master
Andre Puschmann 4 years ago
parent b41fc96d6d
commit 346c07a9f2

@ -599,6 +599,10 @@ void sync::run_idle_state()
void sync::run_thread() void sync::run_thread()
{ {
while (running) { while (running) {
if (log_phy_lib_h) {
log_phy_lib_h->step(tti);
}
Debug("SYNC: state=%s, tti=%d\n", phy_state.to_string(), tti); Debug("SYNC: state=%s, tti=%d\n", phy_state.to_string(), tti);
// If not camping, clear SFN sync // If not camping, clear SFN sync
@ -606,10 +610,6 @@ void sync::run_thread()
force_camping_sfn_sync = false; force_camping_sfn_sync = false;
} }
if (log_phy_lib_h) {
log_phy_lib_h->step(tti);
}
switch (phy_state.run_state()) { switch (phy_state.run_state()) {
case sync_state::CELL_SEARCH: case sync_state::CELL_SEARCH:
run_cell_search_state(); run_cell_search_state();

Loading…
Cancel
Save