aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-21 23:27:16 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-21 23:55:27 +0200
commite02d7796c3cb4eaeca679286bc6db12b9b2c070b (patch)
tree0402d6fa1ec499c619dd08606d431681280d69c9 /src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
parent714ccb9992307112689d63493fada72cf1a6224b (diff)
sysmobts: Show the current temperature controls state int he VTY
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
index 7407f74b..d3a46283 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
@@ -39,6 +39,11 @@ static const struct value_string state_names[] = {
{ 0, NULL }
};
+const char *sysmobts_mgr_temp_get_state(enum sysmobts_temp_state state)
+{
+ return get_value_string(state_names, state);
+}
+
static int next_state(enum sysmobts_temp_state current_state, int critical, int warning)
{
int next_state = -1;