bugfix payloadmask
This commit is contained in:
parent
ac2f67e98f
commit
0db8e37563
@ -144,7 +144,7 @@ int checkIaqSensorStatus(void) {
|
|||||||
// store current BME sensor data in struct
|
// store current BME sensor data in struct
|
||||||
void bme_storedata(bmeStatus_t *bme_store) {
|
void bme_storedata(bmeStatus_t *bme_store) {
|
||||||
|
|
||||||
if ((cfg.payloadmask && MEMS_DATA) &
|
if ((cfg.payloadmask & MEMS_DATA) &&
|
||||||
(I2C_MUTEX_LOCK())) { // block i2c bus access
|
(I2C_MUTEX_LOCK())) { // block i2c bus access
|
||||||
|
|
||||||
#ifdef HAS_BME680
|
#ifdef HAS_BME680
|
||||||
|
@ -138,7 +138,7 @@ void gps_loop(void *pvParameters) {
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
||||||
if (cfg.payloadmask && GPS_DATA) {
|
if (cfg.payloadmask & GPS_DATA) {
|
||||||
#ifdef GPS_SERIAL
|
#ifdef GPS_SERIAL
|
||||||
// feed GPS decoder with serial NMEA data from GPS device
|
// feed GPS decoder with serial NMEA data from GPS device
|
||||||
while (GPS_Serial.available()) {
|
while (GPS_Serial.available()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user