Small changes

This commit is contained in:
fvanroie 2020-12-16 01:54:58 +01:00
parent 94c67eb29e
commit bfc6a0f7b7
2 changed files with 8 additions and 3 deletions

View File

@ -11,7 +11,7 @@ This project is a re-implementation of the popular HASwitchPlate sketch created
The [original HASwitchPlate][1] project uses a Wemos D1 mini and requires a Nextion/TJC HMI display. The [original HASwitchPlate][1] project uses a Wemos D1 mini and requires a Nextion/TJC HMI display.
This rewrite removes the Nextion/TJC requirement by using the [Littlev Graphics Library][2] on the MCU to drive a cheap commodity display. This rewrite removes the Nextion/TJC requirement by using the [Littlev Graphics Library][2] on the MCU to drive a cheap commodity display.
This version also adds ESP32 and STM32 support to take advantage of the additional hardware capabilities. This version also adds ESP32 and STM32F4 support to take advantage of the additional hardware capabilities.
## Demo Screens ## Demo Screens

View File

@ -1370,8 +1370,13 @@ void webHandleGpioOptions()
httpMessage += F("</select></p>"); httpMessage += F("</select></p>");
httpMessage += F("<p><b>Group</b> <select id='group' name='group'>"); httpMessage += F("<p><b>Group</b> <select id='group' name='group'>");
for(int i = 0; i < 15; i++) { httpMessage += getOption(0, F("None"), conf.group == 0);
httpMessage += getOption(i, "Group " + String(i), i == conf.group); String group((char *)0);
group.reserve(10);
for(int i = 1; i < 15; i++) {
group = F("Group ");
group += i;
httpMessage += getOption(i, group, conf.group == i);
} }
httpMessage += F("</select></p>"); httpMessage += F("</select></p>");