diff options
author | Guillaume Knispel <gknispel@avencall.com> | 2012-09-12 18:21:32 +0200 |
---|---|---|
committer | Guillaume Knispel <gknispel@avencall.com> | 2012-09-12 18:21:32 +0200 |
commit | 6546ea2051fe801952a5a8f2c7227495b21c577c (patch) | |
tree | 0213be4db06d0d185b87c590a6c1c5960f9d832a | |
parent | fa659c81431f99389b3782040200f8180ba01a3d (diff) |
don't reboot on a uC controlled power button override
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |