mirror of https://github.com/arendst/Tasmota.git
Merge pull request #8043 from markuspeter/development
Use unicode decimal code for shutter buttons
This commit is contained in:
commit
a096adb704
|
@ -1178,7 +1178,7 @@ void HandleRoot(void)
|
||||||
int32_t ShutterWebButton;
|
int32_t ShutterWebButton;
|
||||||
if (ShutterWebButton = IsShutterWebButton(idx)) {
|
if (ShutterWebButton = IsShutterWebButton(idx)) {
|
||||||
WSContentSend_P(HTTP_DEVICE_CONTROL, 100 / devices_present, idx,
|
WSContentSend_P(HTTP_DEVICE_CONTROL, 100 / devices_present, idx,
|
||||||
(set_button) ? SettingsText(SET_BUTTON1 + idx -1) : ((Settings.shutter_options[abs(ShutterWebButton)-1] & 2) /* is locked */ ? "-" : ((Settings.shutter_options[abs(ShutterWebButton)-1] & 8) /* invert web buttons */ ? ((ShutterWebButton>0) ? "▼" : "▲") : ((ShutterWebButton>0) ? "▲" : "▼"))),
|
(set_button) ? SettingsText(SET_BUTTON1 + idx -1) : ((Settings.shutter_options[abs(ShutterWebButton)-1] & 2) /* is locked */ ? "-" : ((Settings.shutter_options[abs(ShutterWebButton)-1] & 8) /* invert web buttons */ ? ((ShutterWebButton>0) ? "▼" : "▲") : ((ShutterWebButton>0) ? "▲" : "▼"))),
|
||||||
"");
|
"");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue