summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Knispel <gknispel@avencall.com>2012-09-12 18:21:32 +0200
committerGuillaume Knispel <gknispel@avencall.com>2012-09-12 18:21:32 +0200
commit6546ea2051fe801952a5a8f2c7227495b21c577c (patch)
tree0213be4db06d0d185b87c590a6c1c5960f9d832a
parentfa659c81431f99389b3782040200f8180ba01a3d (diff)
don't reboot on a uC controlled power button override
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6f73475..1c9e5c7 100644
--- a/main.c
+++ b/main.c
@@ -394,7 +394,7 @@ int main(void)
change_state(STOP + 1);
break;
case STOP + 1:
- if (Timer1 == 0) {
+ if ((Timer1 == 0) && (SW1State == 0)) {
SetBit(P2OUT, RED_LED_N); // To show restart is possible now
change_state(WAIT_START);
}