implement addHB (Usermod help button utility function)
See https://github.com/Aircoookie/WLED/pull/2965
This commit is contained in:
@@ -378,7 +378,8 @@ class UsermodBattery : public Usermod
|
||||
|
||||
void appendConfigData()
|
||||
{
|
||||
oappend(SET_F("addInfo('Battery:help',0,'<button onclick=\"location.href="https://mm.kno.wled.ge/usermods/Battery"\" type=\"button\">?</button>');"));
|
||||
oappend(SET_F("addHB('")); oappend(SET_F(_name)); oappend("');");
|
||||
|
||||
oappend(SET_F("addInfo('Battery:min-voltage', 1, 'v');"));
|
||||
oappend(SET_F("addInfo('Battery:max-voltage', 1, 'v');"));
|
||||
oappend(SET_F("addInfo('Battery:capacity', 1, 'mAh');"));
|
||||
|
||||
Reference in New Issue
Block a user