altos: Allow ao_science_slave to not log data
authorKeith Packard <keithp@keithp.com>
Wed, 12 Oct 2011 00:13:00 +0000 (18:13 -0600)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Oct 2011 00:57:32 +0000 (18:57 -0600)
This is mostly for debugging with flash writes disabled.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_science_slave.c

index e902318fe7349929f96ecbaf0d4c20c0eb9f65b3..78941255ef7014a28947620dcecac59b524bc45c 100644 (file)
@@ -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
 }