AutoConnectRadio indexer has incorrectly 0-based. (Issue #65)

pull/66/head
Hieromon Ikasamo 6 years ago
parent f0742a72f4
commit 16d9fe078f
  1. 2
      src/AutoConnectElementBasisImpl.h

@ -186,7 +186,7 @@ const String AutoConnectRadioBasis::toHTML(void) const {
n++;
String id = name + "_" + String(n);
html += String(F("<input type=\"radio\" name=\"")) + name + String(F("\" id=\"")) + id + String(F("\" value=\"")) + value + String("\"");
if (n == checked - 1)
if (n == checked)
html += String(F(" checked"));
html += String(F("><label for=\"")) + id + String("\">") + value + String(F("</label>"));
if (order == AC_Vertical)

Loading…
Cancel
Save