- Fixed some serious bugs in amor2t having to do with recent extensions
- fixed velocity selector code to properly display data at list - got hkl to give proper answers when a psi value was specified and limited psi to 360 max. - fixed a minor spelling error in fitcenter messages - fixed badly working soft zeros with negative sign
This commit is contained in:
11
amor2t.c
11
amor2t.c
@@ -931,12 +931,23 @@
|
||||
return 0;
|
||||
}
|
||||
memcpy(pAOM,pNew,sizeof(Amor2T));
|
||||
pAOM->pDriv = CreateDrivableInterface();
|
||||
pAOM->pDes = CreateDescriptor("Amor2T");
|
||||
if(!pAOM->pDriv || !pAOM->pDes )
|
||||
{
|
||||
A2TKill(pNew);
|
||||
SCWrite(pCon,"ERROR: out of memory in Amor2TFactory",eError);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* set modified interface functions */
|
||||
pAOM->pDes->GetInterface = A2TGetInterface;
|
||||
pAOM->pDriv->Halt = A2THalt;
|
||||
pAOM->pDes->SaveStatus = NULL;
|
||||
pAOM->pDriv->CheckLimits = ANA2TCheck;
|
||||
pAOM->pDriv->SetValue = ANA2TSetValue;
|
||||
pAOM->pDriv->GetValue = ANA2TGetValue;
|
||||
pAOM->pDriv->CheckStatus = A2TStatus;
|
||||
|
||||
|
||||
/* install commands */
|
||||
|
||||
Reference in New Issue
Block a user