Hotfixes
This commit is contained in:
parent
3d5b098595
commit
59fc1622dc
2 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,8 @@ public final class ControllerSpin extends ActorThread<WashingMessage> {
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
temp = receiveWithTimeout(10000 / Settings.SPEEDUP);
|
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 there is a new message, swap
|
||||||
if (temp != null) {
|
if (temp != null) {
|
||||||
|
|
|
@ -52,6 +52,9 @@ public final class WashingProgram3 extends ActorThread<WashingMessage> {
|
||||||
water.send(new WashingMessage(this, WATER_DRAIN));
|
water.send(new WashingMessage(this, WATER_DRAIN));
|
||||||
receive();
|
receive();
|
||||||
|
|
||||||
|
water.send(new WashingMessage(this, WATER_IDLE));
|
||||||
|
receive();
|
||||||
|
|
||||||
// Unlock hatch
|
// Unlock hatch
|
||||||
io.lock(false);
|
io.lock(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue