From 7be58a173aae516a185fd5c2a56ffc3a8a698e05 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 21 Aug 2014 18:03:25 +0200 Subject: sysmobts: Fix the build when no 2050 uc header file was found Fix the build (provide empty stubs) when the header file is not present. --- src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/osmo-bts-sysmo/misc') diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c index 7de68954..daad7647 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c +++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c @@ -334,4 +334,18 @@ void sbts2050_uc_initialize(void) { LOGP(DTEMP, LOGL_NOTICE, "sysmoBTS2050 was not enabled at compile time.\n"); } + +void sbts2050_uc_check_temp(int *temp_pa, int *temp_board) +{ + LOGP(DTEMP, LOGL_ERROR, "sysmoBTS2050 compiled without temp support.\n"); + *temp_pa = *temp_board = 99999; +} + +int sbts2050_uc_get_status(struct sbts2050_power_status *status) +{ + memset(status, 0, sizeof(*status)); + LOGP(DTEMP, LOGL_ERROR, "sysmoBTS2050 compiled without status support.\n"); + return -1; +} + #endif -- cgit v1.2.3