From d3bf77d1e706ba45c044afbfa72b3359847e0214 Mon Sep 17 00:00:00 2001 From: Chrisotph Schultz Date: Mon, 5 Oct 2020 12:58:05 +0200 Subject: [PATCH] added rcmd 0x18 for switching off/on ENS --- include/globals.h | 3 +-- src/configmanager.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/globals.h b/include/globals.h index b4395c38..73245469 100644 --- a/include/globals.h +++ b/include/globals.h @@ -84,8 +84,7 @@ typedef struct __attribute__((packed)) { uint8_t payloadmask; // bitswitches for payload data uint8_t enscount; // 0=disabled 1= enabled - char version[10]; // Firmware version - + #ifdef HAS_BME680 uint8_t bsecstate[BSEC_MAX_STATE_BLOB_SIZE + 1]; // BSEC state for BME680 sensor #endif diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 1b4dab82..45bb36e7 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -54,7 +54,7 @@ static void defaultConfig(configData_t *myconfig) { myconfig->monitormode = 0; // 0=disabled, 1=enabled myconfig->payloadmask = PAYLOADMASK; // all payload switched on myconfig->enscount =0; // 0= disabled, 1 = enabled - memcpy(myconfig->version, version, 10); // Firmware version [exactly 10 chars] + #ifdef HAS_BME680 // initial BSEC state for BME680 sensor