summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Knispel <gknispel@avencall.com>2012-09-19 15:06:49 +0200
committerGuillaume Knispel <gknispel@avencall.com>2012-09-19 15:06:49 +0200
commit90a2ed97fa0b27c460567c03cdbbb8a7b7df6129 (patch)
treeab82fdd472cbf1e975c41e9ff7719a7768de1ca2
parentb00f85ae478f4307224f1c5b269e17adff5d36cb (diff)
force off state for 3 seconds
This is in line with what is used for the auto reboots tests and what the EP80579 does itself in some reboot cases.
-rw-r--r--main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.c b/main.c
index 2d37a17..d2cf023 100644
--- a/main.c
+++ b/main.c
@@ -415,11 +415,7 @@ int main(void)
case STOP:
InitPorts();
-#ifndef LOOP_REBOOT
- Timer1 = 1000; // Disable any other Power up for 1 s.
-#else
- Timer1 = 3000;
-#endif
+ Timer1 = 3000; // Disable any other Power up for 3 s.
ClrBit(P2OUT, RED_LED_N); // To show no restart is possible for now
change_state(STOP + 1);
break;