We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1cbc6 commit 65578b5Copy full SHA for 65578b5
src/components/i2c/WipperSnapper_I2C.cpp
@@ -1260,7 +1260,8 @@ void WipperSnapper_Component_I2C::sensorEventRead(
1260
WS_DEBUG_PRINTLN(unit);
1261
1262
// pack event data into msg
1263
- if (sensorType == wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_RAW) {
+ if (sensorType == wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_RAW ||
1264
+ sensorType == wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_PROXIMITY) {
1265
fillEventMessage(msgi2cResponse, event.data[0], sensorType);
1266
} else {
1267
fillEventMessage(msgi2cResponse, event.*valueMember, sensorType);
0 commit comments