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) { | ||||
|             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) { | ||||
|  |  | |||
|  | @ -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); | ||||
|              | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus