diff options
author | jaseg <code@jaseg.net> | 2016-05-05 19:25:03 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-05-05 19:25:03 +0200 |
commit | f49a062cf261e70af5b045e5ae63a14dd80f452b (patch) | |
tree | cd28a93056ed48903faf54b9fae868a0a66471d4 | |
parent | 698c35b23c7f3f43e47479ff158e71c7c331f918 (diff) | |
download | cccb-klingel-f49a062cf261e70af5b045e5ae63a14dd80f452b.tar.gz cccb-klingel-f49a062cf261e70af5b045e5ae63a14dd80f452b.tar.bz2 cccb-klingel-f49a062cf261e70af5b045e5ae63a14dd80f452b.zip |
Allow ringing to be interrupted by further input
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ void ring(void) { tx_str(PSTR("RING Ringing\r\n")); PORTB |= 0x20; PORTC |= 0x04; - for (uint16_t i=0; i<RING_DURATION_SEC*100 && !handle_open_button(); i++) + for (uint16_t i=0; i<RING_DURATION_SEC*100 && !handle_open_button() && (PINC&1); i++) _delay_ms(10); PORTB &= ~0x20; PORTC &= ~0x04; |