aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-22 00:02:07 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-22 00:06:01 +0200
commit15f899f89ee6a6384b34f82eade16192a71508fe (patch)
tree461fe11237221ab3e3b95062c1193add05469239 /src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
parent3a54b7aa308be6672ce7335a621030ba979bb0be (diff)
sysmobts: Use the uc connection on both slave and master
We can use this on both slave and master. But only have the master switch on the PA.
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
index 16373748..9c8b15b3 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
@@ -271,10 +271,13 @@ DEFUN(show_mgr, show_mgr_cmd, "show manager",
sysmobts_temp_get(SYSMOBTS_TEMP_RF,
SYSMOBTS_TEMP_INPUT) / 1000.0f,
VTY_NEWLINE);
- if (is_sbts2050_master()) {
+ if (is_sbts2050()) {
int temp_pa, temp_board;
struct sbts2050_power_status status;
+ vty_out(vty, " sysmoBTS 2050 is %s%s",
+ is_sbts2050_master() ? "master" : "slave", VTY_NEWLINE);
+
sbts2050_uc_check_temp(&temp_pa, &temp_board);
vty_out(vty, " sysmoBTS 2050 PA: %d Celcius%s", temp_pa, VTY_NEWLINE);
vty_out(vty, " sysmoBTS 2050 PA: %d Celcius%s", temp_board, VTY_NEWLINE);