Call AsynSrv_OpenNew instead of AsynSrv_Force

This commit is contained in:
cvs
2000-09-13 15:04:48 +00:00
parent 7e2dbcde8d
commit 6fc4e6b317

View File

@ -71,8 +71,6 @@
#define True 1 #define True 1
#define False 0 #define False 0
extern int AsynSrv_Force( struct AsynSrv__info *asyn_info);
struct SerialInfo { struct SerialInfo {
int skt; int skt;
int iForce; int iForce;
@ -181,7 +179,7 @@ extern int AsynSrv_Force( struct AsynSrv__info *asyn_info);
my_info->sAsync.port = iPort; my_info->sAsync.port = iPort;
strcpy(my_info->sAsync.host,pHost); strcpy(my_info->sAsync.host,pHost);
my_info->sAsync.chan = iChannel; my_info->sAsync.chan = iChannel;
status = AsynSrv_Force (&(my_info->sAsync)); status = AsynSrv_OpenNew (&(my_info->sAsync));
if (status != 1) { if (status != 1) {
return OPENFAILURE; return OPENFAILURE;
} }