Show webbutton label '-' when shutter is locked

This commit is contained in:
to-scho 2020-01-14 11:00:22 +01:00
parent c256ca7f13
commit bc83aad8bd

View File

@ -1123,7 +1123,7 @@ void HandleRoot(void)
int32_t ShutterWebButton;
if (ShutterWebButton = IsShutterWebButton(idx)) {
WSContentSend_P(HTTP_DEVICE_CONTROL, 100 / devices_present, idx,
(set_button) ? SettingsText(SET_BUTTON1 + idx -1) : (ShutterWebButton>0) ? "" : "",
(set_button) ? SettingsText(SET_BUTTON1 + idx -1) : ((Settings.shutter_options[abs(ShutterWebButton)-1] & 2) /* is locked */ ? "-" : ((ShutterWebButton>0) ? "" : "")),
"");
continue;
}