iso7816_4: Re-trigger watchdog while waiting for character

This commit is contained in:
Harald Welte 2017-11-28 22:47:09 +01:00
parent c1e2254854
commit 0633b25974
1 changed files with 1 additions and 0 deletions

View File

@ -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 );