From ac3fc27257c16a74c524a1c070ce029d10ca7815 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 10 Oct 2013 21:12:39 +0200 Subject: sysmobts: Attempt to fix the compilation for the v1 hardware --- src/osmo-bts-sysmo/l1_if.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index 7b72d1d5..3dbcd537 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -1044,6 +1044,9 @@ static int activate_rf_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp) static int get_clk_cal(struct femtol1_hdl *hdl) { +#ifdef FEMTOBTS_API_VERSION + return hdl->clk_cal; +#else switch (hdl->clk_src) { case SuperFemto_ClkSrcId_Ocxo: case SuperFemto_ClkSrcId_Tcxo: @@ -1058,6 +1061,7 @@ static int get_clk_cal(struct femtol1_hdl *hdl) get_value_string(femtobts_clksrc_names, hdl->clk_src)); return 0; } +#endif } /* activate or de-activate the entire RF-Frontend */ -- cgit v1.2.3