summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-10-11 18:13:00 -0600
committerKeith Packard <keithp@keithp.com>2011-10-11 18:57:32 -0600
commitcb837d9bb9e6736fcdfca7692b1f9490ea090838 (patch)
tree8b1ca8a23a4c6718bc0e783d25844d41d3e7e9ee
parentac0bebc44bc657b303db4c41fa0c9624f3df9f4f (diff)
altos: Allow ao_science_slave to not log data
This is mostly for debugging with flash writes disabled. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/drivers/ao_science_slave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/ao_science_slave.c b/src/drivers/ao_science_slave.c
index e902318f..78941255 100644
--- a/src/drivers/ao_science_slave.c
+++ b/src/drivers/ao_science_slave.c
@@ -49,6 +49,7 @@ void ao_spi_slave(void)
return;
}
+#if HAS_LOG
ao_log_single_write_data.telescience.tm_tick = ao_companion_command.tick;
if (ao_log_single_write_data.telescience.tm_state != ao_companion_command.flight_state) {
ao_log_single_write_data.telescience.tm_state = ao_companion_command.flight_state;
@@ -59,4 +60,5 @@ void ao_spi_slave(void)
ao_log_single_stop();
}
}
+#endif
}