- Fixes to HM code for AMOR TOF

- A couple of TAS fixes
- o2t was fixed to work with any drivable
- FOCUS was mended to include beam monitor in data file
This commit is contained in:
cvs
2002-07-19 15:09:21 +00:00
parent e0c5afcf6d
commit bde19bb973
38 changed files with 604 additions and 249 deletions

View File

@ -81,6 +81,7 @@
NULL };
static pICallBack pCall = NULL;
static int fixed = 0;
/*-------------------------------------------------------------------------*/
void KillStatus(void *pData)
{
@ -89,15 +90,40 @@
DeleteCallBackInterface(pCall);
}
}
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
void SetStatus(Status eNew)
{
if(eCode == eNew)
if(!fixed)
{
return;
if(eCode == eNew)
{
return;
}
eCode = eNew;
InvokeCallBack(pCall,VALUECHANGE,NULL);
}
eCode = eNew;
InvokeCallBack(pCall,VALUECHANGE,NULL);
}
/*----------------------------------------------------------------------*/
void SetStatusFixed(Status eNew)
{
if(eCode == eNew)
{
return;
}
eCode = eNew;
InvokeCallBack(pCall,VALUECHANGE,NULL);
fixed = 1;
}
/*----------------------------------------------------------------------*/
void ClearFixedStatus(Status eNew)
{
if(eCode == eNew)
{
return;
}
eCode = eNew;
InvokeCallBack(pCall,VALUECHANGE,NULL);
fixed = 0;
}
/*-------------------------------------------------------------------------*/
Status GetStatus(void)