mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-08 17:55:59 +03:00
iso7816_4: Re-trigger watchdog while waiting for character
This commit is contained in:
1 parent
c1e2254854
commit
0633b25974
1 file changed
+1
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user