[pressure-temperature] only when baro in use

main-solar-only
Richard Meadows 2016-07-17 19:51:45 +01:00
rodzic 17e92681c9
commit bc625f9778
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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
}