This commit is contained in:
Imbus 2024-11-15 11:11:24 +01:00
parent 3d5b098595
commit 59fc1622dc
2 changed files with 5 additions and 1 deletions

View file

@ -28,7 +28,8 @@ public final class ControllerSpin extends ActorThread<WashingMessage> {
while (true) {
try {
temp = receiveWithTimeout(10000 / Settings.SPEEDUP);
elapsed = ((System.currentTimeMillis() - start) * (Settings.SPEEDUP) / 1000 * 60);
elapsed = ((System.currentTimeMillis() - start) * Settings.SPEEDUP) / (1000 * 60);
System.out.println(elapsed);
// If there is a new message, swap
if (temp != null) {

View file

@ -52,6 +52,9 @@ public final class WashingProgram3 extends ActorThread<WashingMessage> {
water.send(new WashingMessage(this, WATER_DRAIN));
receive();
water.send(new WashingMessage(this, WATER_IDLE));
receive();
// Unlock hatch
io.lock(false);