PSI sics-cvs-psi-complete-tree-post-site-support
This commit is contained in:
@@ -32,7 +32,15 @@ static void syncLogin(void)
|
||||
connect
|
||||
*/
|
||||
connection = NETConnect(hostname, port);
|
||||
NETRead(connection,pBueffel,1020,10*1000);
|
||||
for(i = 0; i < 10; i++)
|
||||
{
|
||||
NETRead(connection,pBueffel,1020,10*1000);
|
||||
if(strstr(pBueffel,"OK") != NULL)
|
||||
{
|
||||
break;
|
||||
}
|
||||
SicsWait(1);
|
||||
}
|
||||
if(connection != NULL)
|
||||
{
|
||||
/*
|
||||
@@ -49,7 +57,7 @@ static void syncLogin(void)
|
||||
}
|
||||
|
||||
pBueffel[0] = '\0';
|
||||
for(i = 0; i < 10; i++)
|
||||
for(i = 0; i < 60; i++)
|
||||
{
|
||||
memset(pRead,0,80);
|
||||
test = NETRead(connection,pRead,70,10*1000);
|
||||
|
||||
Reference in New Issue
Block a user