瀏覽代碼

Fixes last temperature bug

Andreas T. Meyer-Berg 3 年之前
父節點
當前提交
d938f8f162

+ 1 - 1
src/main/java/de/tu_darmstadt/tk/SmartHomeNetworkSim/core/devices/SmartTemperatureProducer.java

@@ -43,7 +43,7 @@ public class SmartTemperatureProducer extends FloatSensorDevice implements Senso
 		 * Change temperature in 1 hour to target temperature 
 		 */
 		tempChangePerHour = trueTemperature-roomStatus.getTemperature();
-		roomStatus.setTemperature(roomStatus.getTemperature()+tempChangePerHour);
+		roomStatus.setTemperature(roomStatus.getTemperature());
 	}
 
 	@Override