Skip to content

Commit 4ee1b4e

Browse files
authored
Merge pull request #16 from Sensirion/fix-sensor-name
Fix sensor name
2 parents c0a904c + c45eff6 commit 4ee1b4e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.3.1]
11+
12+
### Fixed
13+
- sensorName was undefined but used in logging.
14+
1015
## [0.3.0]
1116

1217
### Added

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Sensirion UPT I2C Auto Detection
2-
version=0.3.0
2+
version=0.3.1
33
author=Jonas Stolle, Maximilian Paulsen
44
maintainer=Sensirion AG <sensirion.com>
55
sentence=Automatically detects Sensirion Sensors on an I2C bus and reads out measurement data.

src/SensorManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ void SensorManager::executeSensorCommunication() {
1212
SensorStateMachine* ssm = mSensorList.getSensorStateMachine(i);
1313
if (ssm) {
1414
const AutoDetectorError error = ssm->update();
15+
const char* sensorName =
16+
sensorLabel(ssm->getSensor()->getSensorType());
1517
switch (error) {
1618
case I2C_ERROR:
1719
ESP_LOGW(TAG,

0 commit comments

Comments
 (0)