bts_trx_vty: use define constant E1_SUBSLOT_FULL instead magic number

Change-Id: I0be228d4473215c6bd36c668e0e10e64965732e7
This commit is contained in:
Philipp Maier 2023-02-08 16:49:32 +01:00
parent ec1a0a102f
commit d4044214ca
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ void parse_e1_link(struct gsm_e1_subslot *e1_link, const char *line,
e1_link->e1_nr = atoi(line);
e1_link->e1_ts = atoi(ts);
if (!strcmp(ss, "full"))
e1_link->e1_ts_ss = 255;
e1_link->e1_ts_ss = E1_SUBSLOT_FULL;
else
e1_link->e1_ts_ss = atoi(ss);
}
@ -773,7 +773,7 @@ void config_write_e1_link(struct vty *vty, struct gsm_e1_subslot *e1_link,
if (!e1_link->e1_ts)
return;
if (e1_link->e1_ts_ss == 255)
if (e1_link->e1_ts_ss == E1_SUBSLOT_FULL)
vty_out(vty, "%se1 line %u timeslot %u sub-slot full%s",
prefix, e1_link->e1_nr, e1_link->e1_ts, VTY_NEWLINE);
else