Call AsynSrv_OpenNew instead of AsynSrv_Force
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user