From 15f899f89ee6a6384b34f82eade16192a71508fe Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 22 Aug 2014 00:02:07 +0200 Subject: 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. --- src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c') diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c index 3064319f..9c42c24b 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c +++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c @@ -309,7 +309,7 @@ int sbts2050_uc_check_temp(int *temp_pa, int *temp_board) void sbts2050_uc_initialize(void) { - if (!is_sbts2050_master()) + if (!is_sbts2050()) return; ucontrol0.fd = osmo_serial_init(ucontrol0.path, 115200); @@ -319,8 +319,10 @@ void sbts2050_uc_initialize(void) return; } - LOGP(DTEMP, LOGL_NOTICE, "Going to enable the PA.\n"); - sbts2050_uc_set_pa_power(1); + if (is_sbts2050_master()) { + LOGP(DTEMP, LOGL_NOTICE, "Going to enable the PA.\n"); + sbts2050_uc_set_pa_power(1); + } } int sbts2050_uc_set_pa_power(int on_off) -- cgit v1.2.3