aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-06-24 11:18:54 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-06-24 11:18:54 +0200
commit123caa3c839e9badf4759c3be6253cbb5804ff56 (patch)
tree06e23ccc4875fc6f29f18edca96c7e468dff7a34
parent593080ebab2a362230710e3b8e0558526cabd938 (diff)
calib: Attempt to fix the build for v2.7 of the api headers
This should fix: calib_file.c: In function 'calib_eeprom_read': calib_file.c:262: error: 'SuperFemto_SetRxCalibTblReq_t' undeclared (first use in this function) calib_file.c:262: error: (Each undeclared identifier is reported only once calib_file.c:262: error: for each function it appears in.)
-rw-r--r--src/osmo-bts-sysmo/calib_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/calib_file.c b/src/osmo-bts-sysmo/calib_file.c
index e8d8261..2cb497d 100644
--- a/src/osmo-bts-sysmo/calib_file.c
+++ b/src/osmo-bts-sysmo/calib_file.c
@@ -258,6 +258,7 @@ static int calib_eeprom_read(const struct calib_file_desc *desc, SuperFemto_Prim
eeprom_Error_t eerr;
int i;
+#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(2,4,0)
if (desc->rx) {
SuperFemto_SetRxCalibTblReq_t *rx = &prim->u.setRxCalibTblReq;
eeprom_RxCal_t rx_cal;
@@ -312,6 +313,7 @@ static int calib_eeprom_read(const struct calib_file_desc *desc, SuperFemto_Prim
for (i = 0; i < arrsize_by_band[desc->band]; i++)
tx->fTxRollOffCorr[i] = tx_cal.fTxRollOffCorr[i];
}
+#endif
return 0;
}