ballle98/AqualinkD#56: trouble setting SPA temp to 104 using openhab

pull/150/head
Lee Ballard 2021-07-16 22:25:49 -05:00
parent e360cbac83
commit 3c38444325
1 changed files with 4 additions and 4 deletions

View File

@ -246,10 +246,10 @@ int setpoint_check(int type, int value, struct aqualinkdata *aqdata)
type_msg = (isSINGLE_DEV_PANEL?"Temp1":"Pool");
if ( aqdata->temp_units == CELSIUS ) {
max = HEATER_MAX_C;
min = (isSINGLE_DEV_PANEL?HEATER_MIN_C:HEATER_MIN_C-1);
min = (isSINGLE_DEV_PANEL?HEATER_MIN_C+1:HEATER_MIN_C);
} else {
max = HEATER_MAX_F;
min = (isSINGLE_DEV_PANEL?HEATER_MIN_F:HEATER_MIN_F-1);
min = (isSINGLE_DEV_PANEL?HEATER_MIN_F+1:HEATER_MIN_F);
}
// if single device then TEMP1 & 2 (not pool & spa), TEMP1 must be set higher than TEMP2
if (isSINGLE_DEV_PANEL &&
@ -262,10 +262,10 @@ int setpoint_check(int type, int value, struct aqualinkdata *aqdata)
case SPA_HTR_SETOINT:
type_msg = (isSINGLE_DEV_PANEL?"Temp2":"Spa");
if ( aqdata->temp_units == CELSIUS ) {
max = (isSINGLE_DEV_PANEL?HEATER_MAX_C:HEATER_MAX_C-1);
max = (isSINGLE_DEV_PANEL?HEATER_MAX_C-1:HEATER_MAX_C);
min = HEATER_MIN_C;
} else {
max = (isSINGLE_DEV_PANEL?HEATER_MAX_F:HEATER_MAX_F-1);
max = (isSINGLE_DEV_PANEL?HEATER_MAX_F-1:HEATER_MAX_F);
min = HEATER_MIN_F;
}
// if single device then TEMP1 & 2 (not pool & spa), TEMP2 must be set lower than TEMP1