- Funny things with header files...
This commit is contained in:
20
dornier2.c
20
dornier2.c
@ -214,6 +214,7 @@ static int takeControl(pDornier pDorn){
|
||||
pDornier pDorn = NULL;
|
||||
int startFlag = 0;
|
||||
int i;
|
||||
DornierStatus sStatus;
|
||||
|
||||
assert(self);
|
||||
pDorn = (pDornier)self->pPrivate;
|
||||
@ -222,18 +223,17 @@ static int takeControl(pDornier pDorn){
|
||||
make sure that a status was read before we do anything here,
|
||||
otherwise we may be in deep trouble
|
||||
*/
|
||||
if(pDorn->noStatus == 1){
|
||||
for(i = 0; i < 3; i++){
|
||||
DornierText(self,pText,131);
|
||||
if(pDorn->noStatus == 0){
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(pDorn->noStatus == 1){
|
||||
pDorn->iLastError = NOSTATUS;
|
||||
if(pDorn->statusMode == STATSEND){
|
||||
iRet = requestDornierStatus(pDorn);
|
||||
if(iRet == 0){
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
iRet = readAndInterpretStatus(pDorn,&sStatus);
|
||||
if(iRet == 0){
|
||||
return 0;
|
||||
}
|
||||
pDorn->lastStatus = sStatus;
|
||||
|
||||
/*
|
||||
less then STARTSPEED, means halt in this case.
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
include ../$(SRC)linux_def
|
||||
|
||||
HDFROOT=/usr/users/SANS2/src
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -I$(HDFROOT)/include -DHDF4 -DHDF5 $(NI) -I$(SRC)hardsup \
|
||||
|
Reference in New Issue
Block a user