# HG changeset patch # User Michiel Broek # Date 1407750623 -7200 # Node ID d734255e66a0e464686693fa41bf386eae354b05 # Parent 5ad534c79a2263a8ec308f06b8b726d1791772b6 LED flash when panel enter key is pressed long. diff -r 5ad534c79a22 -r d734255e66a0 thermferm/panel.c --- a/thermferm/panel.c Mon Aug 11 11:09:23 2014 +0200 +++ b/thermferm/panel.c Mon Aug 11 11:50:23 2014 +0200 @@ -108,6 +108,10 @@ Key_Enter = TRUE; if (Enter > PRESS_LONG) Key_Enter_Long = TRUE; + if (Enter == PRESS_LONG) + digitalWrite(PANEL_LED, 1); + if (Enter == (PRESS_LONG + 10)) + digitalWrite(PANEL_LED, 0); } if (digitalRead(PANEL_UP)) {