aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-21 21:56:12 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-21 23:55:27 +0200
commitd036cce744b4c0da6b147fe94d7f8ce723f8bb30 (patch)
treee24e0c097704a076bece519374017787d9ba793d /src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
parentc42bf5fdf5e933413ec0a480d5a2de42538e9c80 (diff)
sysmobts: Remove the sbt2050 timer and move defines back
We haven't done anything with the result of the micro controller query and querying every six hours for the temperature of the system will not help us. We need to query the temperatures more frequently but avoid writing to the eeprom too frequently so we will start another timer for that.
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
index dcb1eae8..90890e69 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
@@ -305,16 +305,6 @@ void sbts2050_uc_check_temp(int *temp_pa, int *temp_board)
msgb_free(msg);
}
-static struct osmo_timer_list temp_uc_timer;
-static void check_uctemp_timer_cb(void *data)
-{
- int temp_pa = 0, temp_board = 0;
-
- sbts2050_uc_check_temp(&temp_pa, &temp_board);
-
- osmo_timer_schedule(&temp_uc_timer, TEMP_TIMER_SECS, 0);
-}
-
void sbts2050_uc_initialize(void)
{
if (!is_sbts2050_master())
@@ -326,9 +316,6 @@ void sbts2050_uc_initialize(void)
"Failed to open the serial interface\n");
return;
}
-
- temp_uc_timer.cb = check_uctemp_timer_cb;
- check_uctemp_timer_cb(NULL);
}
#else
void sbts2050_uc_initialize(void)