fixed compilation for certain configurations

pull/2/head DF12
Mateusz Lubecki 2021-02-26 08:53:21 +01:00
rodzic a24cc8148f
commit 6f088d72e5
3 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -4,8 +4,8 @@
#include "aprs/ax25.h"
#include "drivers/serial.h"
#define SW_VER "DF11"
#define SW_DATE "12012021"
#define SW_VER "DF12"
#define SW_DATE "26022021"
#define SYSTICK_TICKS_PER_SECONDS 100
#define SYSTICK_TICKS_PERIOD 10

Wyświetl plik

@ -35,6 +35,8 @@
#define _ANEMOMETER_VOLTAGE_FOR_1DEG_DIRECTION
#define _ANEMOMETER_VOLTAGE_FOR_359DEG_DIRECTION
#define _SENSOR_MS5611
/* WEATHER/METEO CONFIGURATION */
/* ---------------------------- */

Wyświetl plik

@ -1,8 +1,9 @@
#include "station_config.h"
#include "rte_wx.h"
#include "rte_pv.h"
#include "rte_main.h"
#include "station_config.h"
#include "./aprs/beacon.h"
#include "./aprs/wx.h"
#include "./aprs/telemetry.h"
@ -197,6 +198,7 @@ void packet_tx_handler(void) {
#if defined(_SENSOR_MS5611) // some metaprogramming to save RAM
// pressure sensors quality factors
if (rte_wx_ms5611_qf == MS5611_QF_UNKNOWN) {
#if defined(_SENSOR_BME280)
// use BME280 is used instead
switch (rte_wx_bme280_qf) {
case BME280_QF_FULL:
@ -206,6 +208,7 @@ void packet_tx_handler(void) {
case BME280_QF_PRESSURE_DEGRADED:
case BME280_QF_GEN_DEGRADED: pressure_qf = PRESSURE_QF_DEGRADATED; break;
}
#endif
}
else {
// if not use MS5611