@@ -353,7 +353,7 @@ public class FXMLViewController implements Initializable, Runnable {
model.compute();
}
- model.getGrid().setFanSpeed(model.getPercentageToSend());
+ model.updateFanSpeed();
try {
while (System.currentTimeMillis() - milis <= 1000) {
@@ -154,6 +154,10 @@ public class ComputerModel {
+
+ public void updateFanSpeed(){
+ getGrid().setFanSpeed(getPercentageToSend());
+ }
/**
* A getter for the Sensor Object to make the methods of the object