|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
Copyright 2013-2017 Software Radio Systems Limited
|
|
|
|
|
Copyright 2019 Software Radio Systems Limited
|
|
|
|
|
|
|
|
|
|
This file is part of srsLTE
|
|
|
|
|
|
|
|
|
@ -71,7 +71,7 @@ inline void assert_choice_type(const std::string& access_type, const std::string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class NumType>
|
|
|
|
|
inline NumType get_enum_number(NumType* array, uint32_t nof_types, uint32_t enum_val, const char* enum_type)
|
|
|
|
|
NumType get_enum_number(NumType* array, uint32_t nof_types, uint32_t enum_val, const char* enum_type)
|
|
|
|
|
{
|
|
|
|
|
if (enum_val >= nof_types) {
|
|
|
|
|
rrc_log_print(LOG_LEVEL_ERROR, "The provided enum value=%d of type %s cannot be translated into a number\n",
|
|
|
|
|