Skip to content

Commit 7914fc4

Browse files
committed
Clarification update
1 parent 3b82637 commit 7914fc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/7_distance_and_light_sensor/7_distance_and_light_sensor.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void loop() {
3838

3939
distance = sensor.getDistance();
4040
lo.addToPayload(distance); // adding 'distance' value to the current payload
41+
// limiting value to 2 decimal places
4142
ambient_light = (static_cast<int>(sensor.getAmbientLight(GAIN_1) * 100.0)) / 100.0;
4243
lo.addToPayload(ambient_light);
4344

0 commit comments

Comments
 (0)