mirror of https://gerrit.osmocom.org/simtrace2
iso7816_4: Re-trigger watchdog while waiting for character
This commit is contained in:
parent
c1e2254854
commit
0633b25974
|
@ -90,6 +90,7 @@ uint32_t ISO7816_GetChar( uint8_t *pCharToReceive, Usart_info *usart)
|
|||
|
||||
/* Wait USART ready for reception */
|
||||
while( ((us_base->US_CSR & US_CSR_RXRDY) == 0) ) {
|
||||
WDT_Restart(WDT);
|
||||
if(timeout++ > 12000 * (BOARD_MCK/1000000)) {
|
||||
TRACE_WARNING("TimeOut\n\r");
|
||||
return( 0 );
|
||||
|
|
Loading…
Reference in New Issue