bugfix payloadmask

This commit is contained in:
Verkehrsrot 2019-09-01 00:11:20 +02:00
parent ac2f67e98f
commit 0db8e37563
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ int checkIaqSensorStatus(void) {
// store current BME sensor data in struct
void bme_storedata(bmeStatus_t *bme_store) {
if ((cfg.payloadmask && MEMS_DATA) &
if ((cfg.payloadmask & MEMS_DATA) &&
(I2C_MUTEX_LOCK())) { // block i2c bus access
#ifdef HAS_BME680

View File

@ -138,7 +138,7 @@ void gps_loop(void *pvParameters) {
while (1) {
if (cfg.payloadmask && GPS_DATA) {
if (cfg.payloadmask & GPS_DATA) {
#ifdef GPS_SERIAL
// feed GPS decoder with serial NMEA data from GPS device
while (GPS_Serial.available()) {