diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e4a2a9..1477e3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [0.5.1] - 2024-12-11 + +### Fixed + +- Fix download definition T_RH_VOC_NOX_PM25 to only have 1 sample per download pack. + With 2 there was a buffer overflow leading to a crash when starting a data download + for a gadget built with arduino-ble-gadget using T_RH_VOC_NOX_PM25 (e.g. SEN55 Example) + The fixed definition is supported by MyAmbience Version 3.5.0 onwards. + ## [0.5.0] - 2024-09-09 ### Added diff --git a/library.properties b/library.properties index 6db3c50..292f6b2 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Sensirion UPT Core -version=0.5.0 +version=0.5.1 author=Jonas Stolle, Maximilian Paulsen maintainer=Sensirion AG sentence=Library for definitions and configurations used by other Sensirion Unified Prototyping Toolkit (UPT) libraries. diff --git a/src/BLEProtocol.cpp b/src/BLEProtocol.cpp index e4bbe3a..3c87a04 100644 --- a/src/BLEProtocol.cpp +++ b/src/BLEProtocol.cpp @@ -194,7 +194,7 @@ std::map sampleConfigSelector = { .downloadType = 23, .sampleType = 24, .sampleSizeBytes = 10, - .sampleCountPerPacket = 2, + .sampleCountPerPacket = 1, .sensirionAdvertisementSampleType = 0, .sampleSlots = {{SignalType::TEMPERATURE_DEGREES_CELSIUS, {.signalType = SignalType::TEMPERATURE_DEGREES_CELSIUS,