- new double control (former controlmode = 2)
- better sea client compatibility
This commit is contained in:
@@ -91,6 +91,22 @@ int TeccGetX(pTecsClient conn, float *tC, float *tP, float *tDif) {
|
||||
OnError: return(-1);
|
||||
}
|
||||
|
||||
int TeccGetMult(pTecsClient conn, int argc, char *argv[], void (* outfunc)(char *, void *), void *arg) {
|
||||
OutFunc f;
|
||||
int iret, i;
|
||||
|
||||
f.func = outfunc;
|
||||
f.arg = arg;
|
||||
CocReset(conn);
|
||||
for (i=0; i<argc; i++) {
|
||||
ERR_I(CocGetOut(conn, argv[i], &f));
|
||||
}
|
||||
ERR_I(iret=CocDoIt(conn, response, sizeof(response)));
|
||||
if (iret) ERR_MSG(response);
|
||||
return 0;
|
||||
OnError: return -1;
|
||||
}
|
||||
|
||||
int TeccSet(pTecsClient conn, float temp) {
|
||||
int iret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user