- 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:
36
status.c
36
status.c
@ -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)
|
||||
|
Reference in New Issue
Block a user