From bc625f9778650c4b698c14d2a431a8661f2611cb Mon Sep 17 00:00:00 2001 From: Richard Meadows Date: Sun, 17 Jul 2016 19:51:45 +0100 Subject: [PATCH] [pressure-temperature] only when baro in use --- firmware/test/tc/pressure_temperature.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/test/tc/pressure_temperature.h b/firmware/test/tc/pressure_temperature.h index 4bc2053..79e25c0 100644 --- a/firmware/test/tc/pressure_temperature.h +++ b/firmware/test/tc/pressure_temperature.h @@ -33,8 +33,10 @@ __verification__ void pressure_temperature_tc(void) { * Use the input parameters to run the test case. Populate the * results structure at the end */ +#ifdef USE_BAROMETER struct barometer* b = get_barometer(); pressure_temperature_tc_results.pressure = (float)b->pressure; pressure_temperature_tc_results.temperature = (float)b->temperature; +#endif }