Fixed light, proximity and pressure problem.

Menaka Madushanka 9 years ago
parent cdd0716930
commit 897b914522

@ -308,17 +308,17 @@ public class AndroidSenseService {
case 5:
streamDef = LIGHT_STREAM_DEFINITION;
sensorName = SENSOR_LIGHT;
payloadData = new Float[]{Float.parseFloat(sensor.value)};
payloadData = new Float[]{Float.parseFloat(valuesM[0])};
break;
case 6:
streamDef = PRESSURE_STREAM_DEFINITION;
sensorName = SENSOR_PRESSURE;
payloadData = new Float[]{Float.parseFloat(sensor.value)};
payloadData = new Float[]{Float.parseFloat(valuesM[0])};
break;
case 8:
streamDef = PROXIMITY_STREAM_DEFINITION;
sensorName = SENSOR_PROXIMITY;
payloadData = new Float[]{Float.parseFloat(sensor.value)};
payloadData = new Float[]{Float.parseFloat(valuesM[0])};
break;
case 9:
streamDef = GRAVITY_STREAM_DEFINITION;

Loading…
Cancel
Save