summaryrefslogtreecommitdiff
path: root/src/drivers/ao_companion.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-08-20 23:02:04 -0700
committerKeith Packard <keithp@keithp.com>2015-08-20 23:08:17 -0700
commitf491eec1b950e4ad35a535db254a27a3dd2ad430 (patch)
tree1e966cada6fc1a1b7c5578d225da4c22acf8f22a /src/drivers/ao_companion.c
parentb4064bf63bb95c58d74869f4ff3e440370d64692 (diff)
altos: Add HAS_COMPANION to new boards with companion connectors
Thanks much to Rob Derstadt for discovering this bug! TeleMetrum v2.0, TeleMega, EasyMega, TeleBalloon v2.0 all have companion connectors and yet HAS_COMPANION was not defined. This disabled companion telemetry packets on these products, but otherwise didn't have any effect. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_companion.c')
-rw-r--r--src/drivers/ao_companion.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/ao_companion.c b/src/drivers/ao_companion.c
index 7e02939b..5f07e8b0 100644
--- a/src/drivers/ao_companion.c
+++ b/src/drivers/ao_companion.c
@@ -23,6 +23,10 @@
#define ao_spi_fast(b)
#endif
+#if !HAS_COMPANION
+#error HAS_COMPANION not set in ao_companion.c
+#endif
+
#define COMPANION_SELECT() do { \
ao_spi_get_bit(AO_COMPANION_CS_PORT, \
AO_COMPANION_CS_PIN, \