- Removed -fwritable-string
This commit is contained in:
11
ecbdriv.c
11
ecbdriv.c
@@ -632,8 +632,9 @@ static int controlMotor(pECBMotDriv self, int enable){
|
||||
usleep(delay);
|
||||
return 1;
|
||||
}else {
|
||||
|
||||
/*
|
||||
disable motor
|
||||
disable air cushions
|
||||
*/
|
||||
in.e = 8;
|
||||
in.b = 11; /* set control signal */
|
||||
@@ -644,15 +645,21 @@ static int controlMotor(pECBMotDriv self, int enable){
|
||||
return 0;
|
||||
}
|
||||
usleep(delay);
|
||||
|
||||
/*
|
||||
clear enable
|
||||
*/
|
||||
in.e = 0;
|
||||
in.b = 11; /* set control signal */
|
||||
in.c = -self->ecbIndex;
|
||||
in.c = self->ecbIndex;
|
||||
status = ecbExecute(self->ecb,MOPARA,in,&out);
|
||||
if(status != 1){
|
||||
self->errorCode = COMMERROR;
|
||||
return 0;
|
||||
}
|
||||
usleep(delay);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user