units now use aqh as argument.
This commit is contained in:
@@ -190,15 +190,15 @@ AQHREACT_UNIT *AqHomeReact_CreateUnitByName(AQHOME_REACT *aqh, const char *unitT
|
||||
/* this does not include u_timer and u_varchanges, because those are only created once globally in init.c */
|
||||
if (aqh && unitType && *unitType) {
|
||||
if (strcasecmp(unitType, "or")==0)
|
||||
return AqHomeReact_UnitOr_new();
|
||||
return AqHomeReact_UnitOr_new(aqh);
|
||||
else if (strcasecmp(unitType, "valueFilter")==0)
|
||||
return AqHomeReact_UnitValueFilter_new();
|
||||
return AqHomeReact_UnitValueFilter_new(aqh);
|
||||
else if (strcasecmp(unitType, "stabilize")==0)
|
||||
return AqHomeReact_UnitStabilize_new();
|
||||
return AqHomeReact_UnitStabilize_new(aqh);
|
||||
else if (strcasecmp(unitType, "lowPass")==0)
|
||||
return AqHomeReact_UnitLowPass_new();
|
||||
return AqHomeReact_UnitLowPass_new(aqh);
|
||||
else if (strcasecmp(unitType, "highPass")==0)
|
||||
return AqHomeReact_UnitHighPass_new();
|
||||
return AqHomeReact_UnitHighPass_new(aqh);
|
||||
else {
|
||||
DBG_ERROR(NULL, "Unknown unit type \"%s\"", unitType);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user