Update knx-bme680.ino

This commit is contained in:
Bernator 2019-10-18 16:32:15 +02:00 committed by GitHub
parent 960d48aab7
commit 2979fc7e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ void loadBme680State(uint8_t* buffer, uint32_t* size)
void saveBme680State(uint8_t* buffer, uint32_t* size)
{
// buffer gets freed inside knx object after saved
buffer = new uint8[BSEC_MAX_STATE_BLOB_SIZE];
buffer = new uint8_t[BSEC_MAX_STATE_BLOB_SIZE];
*size = BSEC_MAX_STATE_BLOB_SIZE;
iaqSensor.getState(buffer);
checkIaqSensorStatus();