mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-23 08:48:35 +03:00
phone.c: Removed dead code (rst_cnt)
This commit is contained in:
@@ -127,8 +127,6 @@ extern uint8_t rcvdChar;
|
|||||||
|
|
||||||
extern volatile uint8_t timeout_occured;
|
extern volatile uint8_t timeout_occured;
|
||||||
|
|
||||||
static rst_cnt = 0;
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------
|
||||||
* Interrupt routines
|
* Interrupt routines
|
||||||
*-----------------------------------------------------------------------------*/
|
*-----------------------------------------------------------------------------*/
|
||||||
@@ -146,11 +144,6 @@ static void ISR_PhoneRST( const Pin *pPin)
|
|||||||
}
|
}
|
||||||
state = RST_RCVD;
|
state = RST_RCVD;
|
||||||
|
|
||||||
/* if (state == NONE || rst_cnt > 2) {
|
|
||||||
state = RST_RCVD;
|
|
||||||
}
|
|
||||||
rst_cnt++;
|
|
||||||
*/
|
|
||||||
// FIXME: What to do on reset?
|
// FIXME: What to do on reset?
|
||||||
// FIXME: It seems like the phone is constantly sending a lot of these RSTs
|
// FIXME: It seems like the phone is constantly sending a lot of these RSTs
|
||||||
PIO_DisableIt( &pinPhoneRST ) ;
|
PIO_DisableIt( &pinPhoneRST ) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user