Merge pull request #7510 from to-scho/hotfix/shutterlock_webbutton

Show webbutton label '-' when shutter is locked
This commit is contained in:
Theo Arends 2020-01-14 11:26:01 +01:00 committed by GitHub
commit fc9fafc19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;
}