- separated target temperature and 'set' readback
This commit is contained in:
10
lsc370driv.c
10
lsc370driv.c
@ -34,6 +34,7 @@ typedef struct {
|
||||
EaseDriv d;
|
||||
float t;
|
||||
float htr;
|
||||
float set;
|
||||
} Lsc370;
|
||||
|
||||
static ParClass lsc370Class = { "LSC370", sizeof(Lsc370) };
|
||||
@ -46,6 +47,9 @@ static void Lsc370ParDef(void *object) {
|
||||
ParName(""); ParTail("K");
|
||||
ParFloat(&drv->t, PAR_NAN);
|
||||
|
||||
ParName("set"); ParTail("K");
|
||||
ParFloat(&drv->set, PAR_NAN);
|
||||
|
||||
ParName("htr"); ParTail("%");
|
||||
ParFloat(&drv->htr, PAR_NAN);
|
||||
|
||||
@ -67,11 +71,9 @@ static long Lsc370Read(long pc, void *object) {
|
||||
EaseWrite(eab, "HTR?");
|
||||
return __LINE__; case __LINE__: /**********************************/
|
||||
drv->htr = atof(eab->ans);
|
||||
if (EaseGetUpdate(drv, EASE_RUN)) goto skipGetSet;
|
||||
EaseWrite(eab, "SET?");
|
||||
EaseWrite(eab, "SETP?");
|
||||
return __LINE__; case __LINE__: /**********************************/
|
||||
if (EaseGetUpdate(drv, EASE_RUN)) goto skipGetSet;
|
||||
drv->d.targetValue = atof(eab->ans);
|
||||
drv->set = atof(eab->ans);
|
||||
|
||||
skipGetSet:
|
||||
ParLog(drv);
|
||||
|
Reference in New Issue
Block a user