Update for 2.6.0 dev

master
sfeakes 2025-03-14 17:34:06 -05:00
parent d203927d12
commit c3a15de5ab
4 changed files with 5 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1194,7 +1194,7 @@ if (strlen(cleanwhitespace(value)) <= 0) {
} else {
LOG(AQUA_LOG,LOG_WARNING, "Error with '%s', total buttons=%d, config has %d already, ignoring!\n",param, TOTAL_BUTTONS, aqdata->total_buttons+1);
}
} else if (strncasecmp(param + 17, "_altlabel", 9) == 0) {
} else if (strncasecmp(param + 17, "_altLabel", 9) == 0) {
char *label = cleanalloc(value);
aqkey *button = getVirtualButton(aqdata, num);
if (button != NULL) {
@ -2033,7 +2033,7 @@ bool writeCfg (struct aqualinkdata *aqdata)
}
if (isVBUTTON_ALTLABEL(aqdata->aqbuttons[i].special_mask)) {
fprintf(fp,"%s_altlabel=%s\n", prefix, ((vbutton_detail *)aqdata->aqbuttons[i].special_mask_ptr)->altlabel);
fprintf(fp,"%s_altLabel=%s\n", prefix, ((vbutton_detail *)aqdata->aqbuttons[i].special_mask_ptr)->altlabel);
}
}

View File

@ -689,7 +689,7 @@
//}
const buttonTypelist = ["pumpIndex", "pumpID", "pumpType", "pumpName", "lightMode"];
const virtButtonTypelist = ["pumpIndex", "pumpID", "pumpType", "pumpName", "onetouchID"];
const virtButtonTypelist = ["pumpIndex", "pumpID", "pumpType", "pumpName", "onetouchID", "altLabel"];
const configtable = document.getElementById("config_table");
const newRow = configtable.insertRow();
@ -788,7 +788,7 @@
return;
}
const virtButtonTypelist = ["pumpIndex", "pumpID", "pumpType", "pumpName", "onetouchID"];
const virtButtonTypelist = ["pumpIndex", "pumpID", "pumpType", "pumpName", "onetouchID", "altLabel"];
const configtable = document.getElementById("config_table");
@ -993,6 +993,7 @@
js['valid values'] = validvalues;
break;
case "pumpName":
case "altLabel":
js.type = "string";
break;
}