mirror of https://github.com/PentHertz/srsLTE.git
adding success/error macros in scheduler.cc
This commit is contained in:
parent
bfa451559b
commit
f09c8324eb
|
@ -261,7 +261,7 @@ uint32_t sched::get_dl_buffer(uint16_t rnti)
|
|||
uint32_t ret = 0;
|
||||
if (ue_db_access(rnti, [&ret](sched_ue& ue) { ret = ue.get_pending_dl_new_data(); })) {
|
||||
Error("Error calling get_dl_buffer, user not found\n");
|
||||
ret = -1;
|
||||
ret = SRSLTE_ERROR;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -269,10 +269,10 @@ uint32_t sched::get_dl_buffer(uint16_t rnti)
|
|||
uint32_t sched::get_ul_buffer(uint16_t rnti)
|
||||
{
|
||||
// TODO: Check if correct use of last_tti
|
||||
uint32_t ret = 0;
|
||||
uint32_t ret = SRSLTE_SUCCESS;
|
||||
if (ue_db_access(rnti, [this, &ret](sched_ue& ue) { ret = ue.get_pending_ul_new_data(last_tti); })) {
|
||||
Error("Error calling get_ul_buffer, user not found\n");
|
||||
ret = -1;
|
||||
ret = SRSLTE_ERROR;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue