fix: Default value to 0.0F instead of null

Este commit está contenido en:
Jean-Remy Hok 2022-01-11 15:43:36 +01:00
padre 9c04f6c9fd
commit 9c20191206
Se han modificado 4 ficheros con 4 adiciones y 4 borrados

Ver fichero

@ -29,7 +29,7 @@ public class Co2SensorController {
@PostMapping("/")
public int addSensor() {
sensorValues.put(currentMaxId, null);
sensorValues.put(currentMaxId, 0.0F);
return currentMaxId++;
}

Ver fichero

@ -29,7 +29,7 @@ public class GazSensorController {
@PostMapping("/")
public int addSensor() {
sensorValues.put(currentMaxId, null);
sensorValues.put(currentMaxId, 0.0F);
return currentMaxId++;
}

Ver fichero

@ -29,7 +29,7 @@ public class LightSensorController {
@PostMapping("/")
public int addSensor() {
sensorValues.put(currentMaxId, null);
sensorValues.put(currentMaxId, 0.0F);
return currentMaxId++;
}

Ver fichero

@ -29,7 +29,7 @@ public class TemperatureSensorController {
@PostMapping("/")
public int addSensor() {
sensorValues.put(currentMaxId, null);
sensorValues.put(currentMaxId, 0.0F);
return currentMaxId++;
}