From e76a3ee499022f8b88c4034cd840cfb4259e0362 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Mon, 6 Apr 2015 20:43:11 +0200 Subject: [PATCH] phone.c: Removed dead code (rst_cnt) --- sam3s_example/simtrace/phone.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sam3s_example/simtrace/phone.c b/sam3s_example/simtrace/phone.c index 0cc5da01..21189004 100644 --- a/sam3s_example/simtrace/phone.c +++ b/sam3s_example/simtrace/phone.c @@ -127,8 +127,6 @@ extern uint8_t rcvdChar; extern volatile uint8_t timeout_occured; -static rst_cnt = 0; - /*----------------------------------------------------------------------------- * Interrupt routines *-----------------------------------------------------------------------------*/ @@ -146,11 +144,6 @@ static void ISR_PhoneRST( const Pin *pPin) } state = RST_RCVD; -/* if (state == NONE || rst_cnt > 2) { - state = RST_RCVD; - } - rst_cnt++; -*/ // FIXME: What to do on reset? // FIXME: It seems like the phone is constantly sending a lot of these RSTs PIO_DisableIt( &pinPhoneRST ) ;