X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2FJava%2FIrrigationController%2FIrrigationController.java;h=a30bffd1ae689b2e183694a36737aa4cb3de11fd;hb=3e3e0d0e468e7f791963c1c14e06966563d3f65c;hp=4bcec6248df9c38bfd1364bf8534a5b6976ba414;hpb=63f68b929831c8054191b24734f3bf56639fb689;p=iot2.git diff --git a/benchmarks/Java/IrrigationController/IrrigationController.java b/benchmarks/Java/IrrigationController/IrrigationController.java index 4bcec62..a30bffd 100644 --- a/benchmarks/Java/IrrigationController/IrrigationController.java +++ b/benchmarks/Java/IrrigationController/IrrigationController.java @@ -257,18 +257,18 @@ public class IrrigationController extends UnicastRemoteObject implements Weather } System.out.println("DEBUG: Waiting for phone to send weather information"); - //while (waitingForInterface.get()) { - // try { - // Thread.sleep(1000); - // } catch (Exception e) { - // e.printStackTrace(); - // } - //} + while (waitingForInterface.get()) { + try { + Thread.sleep(1000); + } catch (Exception e) { + e.printStackTrace(); + } + } // TODO: Use a phone input interface later - inchesPerWeek = 20.00; + /*inchesPerWeek = 20.00; weatherZipCode = 92612; daysToWaterOn = 255; - inchesPerMinute.add(1.50); + inchesPerMinute.add(1.50);*/ System.out.println("DEBUG: inchesPerWeek: " + inchesPerWeek); System.out.println("DEBUG: weatherZipCode: " + weatherZipCode);