X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2FJava%2FLifxtest%2FLifxtest.java;h=b968682b2f3be42772cd1d31caf55d65e8abf796;hb=3f7f321df88865c44ce21ba16b344be6718b9472;hp=64469f5481a68b5f2172dc3db83f4635fb273197;hpb=c237c320de0460665d2adf13fc24034398a2d9c9;p=iot2.git diff --git a/benchmarks/Java/Lifxtest/Lifxtest.java b/benchmarks/Java/Lifxtest/Lifxtest.java index 64469f5..b968682 100644 --- a/benchmarks/Java/Lifxtest/Lifxtest.java +++ b/benchmarks/Java/Lifxtest/Lifxtest.java @@ -27,12 +27,8 @@ public class Lifxtest { public void init() throws InterruptedException { for(LightBulbTest lifx : lifx_light_bulb.values()) { - //Thread thread = new Thread(new Runnable() { - // public void run() { - lifx.init(); - // } - //}); - //thread.start(); + + lifx.init(); Thread.sleep(1000); for (int i = 0; i < 5; i++) { @@ -68,8 +64,7 @@ public class Lifxtest { lifx.setColor(lifx.getHue(), lifx.getSaturation(), i); Thread.sleep(500); } - lifx.turnOff(); - //thread.join(); + lifx.turnOff(); } } }