BME680 bugfixes

This commit is contained in:
Klaus K Wilting committed 2018-12-31 15:46:52 +01:00
1 parent 7040408513
commit 998e122f3a
5 files changed
+29 -24

No files matched your search

-1
View File
@@ -3,7 +3,6 @@
#include "globals.h"
#include <Wire.h>
#include "irqhandler.h"
#include "../lib/Bosch-BSEC/src/bsec.h"
extern bmeStatus_t
+7 -5
View File
@@ -9,6 +9,7 @@
#include <array>
#include <algorithm>
#include "Mallocator.h"
#include "inc/bsec_datatypes.h"
// sniffing types
#define MAC_SNIFF_WIFI 0
@@ -54,7 +55,7 @@ typedef struct {
uint8_t runmode; // 0=normal, 1=update
uint8_t payloadmask; // bitswitches for payload data
char version[10]; // Firmware version
char bsecstate[BSEC_MAX_STATE_BLOB_SIZE+1]; // init BSEC state for BME680 sensor
char bsecstate[BSEC_MAX_STATE_BLOB_SIZE + 2]; // init BSEC state for BME680 sensor
} configData_t;
// Struct holding payload for data send queue
@@ -98,6 +99,7 @@ extern std::array<uint64_t, 0xff> beacons;
extern TaskHandle_t irqHandlerTask, wifiSwitchTask;
// application includes
#include "led.h"
#include "payload.h"
#include "blescan.h"
@@ -106,10 +108,6 @@ extern TaskHandle_t irqHandlerTask, wifiSwitchTask;
#include "gpsread.h"
#endif
#ifdef HAS_BME
#include "bme680mems.h"
#endif
#ifdef HAS_LORA
#include "lorawan.h"
#endif
@@ -134,4 +132,8 @@ extern TaskHandle_t irqHandlerTask, wifiSwitchTask;
#include "sensor.h"
#endif
#ifdef HAS_BME
#include "bme680mems.h"
#endif
#endif