updated dcc to compile after refactoring the I-Am request.

This commit is contained in:
skarg
2006-02-20 17:54:08 +00:00
parent 0cf976c213
commit 616982fba3
2 changed files with 17 additions and 23 deletions
-7
View File
@@ -216,8 +216,6 @@ int main(int argc, char *argv[])
last_seconds = time(NULL);
timeout_seconds = (Device_APDU_Timeout() / 1000) *
Device_Number_Of_APDU_Retries();
/* don't send an I-Am unless asked */
I_Am_Request = false;
/* try to bind with the device */
Send_WhoIs(Target_Device_Object_Instance,
Target_Device_Object_Instance);
@@ -239,10 +237,6 @@ int main(int argc, char *argv[])
last_seconds) * 1000));
if (Error_Detected)
break;
if (I_Am_Request) {
I_Am_Request = false;
iam_send(&Handler_Transmit_Buffer[0]);
} else {
/* wait until the device is bound, or timeout and quit */
found = address_bind_request(Target_Device_Object_Instance,
&max_apdu, &Target_Address);
@@ -261,7 +255,6 @@ int main(int argc, char *argv[])
if (elapsed_seconds > timeout_seconds)
break;
}
}
/* keep track of time for next check */
last_seconds = current_seconds;
}
+1
View File
@@ -28,6 +28,7 @@ SRCS = main.c \
..\..\demo\handler\h_rp.c \
..\..\demo\handler\h_dcc.c \
..\..\demo\handler\s_whois.c \
..\..\demo\handler\s_dcc.c \
..\..\bacdcode.c \
..\..\bacapp.c \
..\..\bacstr.c \