From bc1a657c8c1d87459108e0896368b4e23ed7edde Mon Sep 17 00:00:00 2001 From: Richard Meadows Date: Sun, 20 Dec 2015 16:16:32 +0000 Subject: [PATCH] Add rf transmit enable in hw config --- firmware/inc/hw_config.h | 7 +++++++ firmware/src/sequencer.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/firmware/inc/hw_config.h b/firmware/inc/hw_config.h index 4477d8b..6bfe860 100644 --- a/firmware/inc/hw_config.h +++ b/firmware/inc/hw_config.h @@ -195,6 +195,13 @@ #define RF_POWER_14dBm 0x7f #define RF_POWER_8dBm 36 +/** + * RF Enable + * + * Disable this when there's no antenna connected + */ +#define RF_TX_ENABLE 1 + /** * LF Clock */ diff --git a/firmware/src/sequencer.c b/firmware/src/sequencer.c index 3823a6c..6542e79 100644 --- a/firmware/src/sequencer.c +++ b/firmware/src/sequencer.c @@ -52,6 +52,7 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n) location_aprs_update(dp->latitude, dp->longitude); /* Telemetry */ +#if RF_TX_ENABLE #if TELEMETRY_ENABLE #if TELEMETRY_USE_GEOFENCE if (location_telemetry_active()) { @@ -81,6 +82,7 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n) } #endif #endif +#endif }