Removed debugging
[gregoa/zavai.git] / src / app_power.vala
index b442c3ab42c9d101226a30a18421d94e40f69f03..0854f9c772dcccb4072f39d48551deee405f12f9 100644 (file)
@@ -124,20 +124,16 @@ public class Power : zavai.Resource, Object
                bool short_press = false;
                bool long_press = false;
 
-stderr.printf("EVENT %d\n", (int)pressed);
-
                if (pressed)
                {
                        if (last_down.tv_sec == 0)
                        {
-stderr.printf("  FIRST PRESSED\n");
                                last_down = *t;
                                button_press_timeout = Timeout.add(1500, on_power_button_timeout);
                        }
                        else
                        {
                                long diff = timediff(t, &last_down);
-stderr.printf("  PRESSED FOR %ld\n", diff);
                                long_press = diff >= 1500000;
                        }
                } else {
@@ -152,7 +148,6 @@ stderr.printf("  PRESSED FOR %ld\n", diff);
                                        button_press_timeout = 0;
                                }
                                long diff = timediff(t, &last_down);
-stderr.printf("  RELEASED AFTER %ld\n", diff);
                                if (diff >= 1500000)
                                        long_press = true;
                                else
@@ -163,8 +158,6 @@ stderr.printf("  RELEASED AFTER %ld\n", diff);
                        }
                }
 
-stderr.printf("  LP %d SP %d\n", (int)long_press, (int)short_press);
-
                if (long_press) power_long_press();
                if (short_press) power_short_press();
        }