Skip to content

Commit 3c933f9

Browse files
committed
force float to avoid complaint
1 parent 059ef8e commit 3c933f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ void WipperSnapper_Component_I2C::sensorEventRead(
12561256
sensorType == wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_PROXIMITY) {
12571257
value = event.data[0];
12581258
} else {
1259-
value = event.*valueMember;
1259+
value = (float)event.*valueMember;
12601260
}
12611261
WS_DEBUG_PRINT("Sensor 0x");
12621262
WS_DEBUG_PRINTHEX((*iter)->getI2CAddress());

0 commit comments

Comments
 (0)