Modify shutter driver for GUI sensor separators (#20506)

This commit is contained in:
SteWers 2024-01-15 18:24:15 +01:00 committed by GitHub
parent f2800dd770
commit ab2439f6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -999,6 +999,9 @@ void WSContentSeparator(uint32_t state) {
case 2: // Print separator on next WSContentSeparator(1)
request = true;
break;
case 3: // Don't print separator on next WSContentSeparator(1)
request = false;
break;
}
}

View File

@ -1141,6 +1141,7 @@ void ShutterToggle(bool dir)
void ShutterShow(){
for (uint32_t i = 0; i < TasmotaGlobal.shutters_present; i++) {
WSContentSend_P(HTTP_MSG_SLIDER_SHUTTER, (Settings->shutter_options[i] & 1) ? D_OPEN : D_CLOSE,(Settings->shutter_options[i] & 1) ? D_CLOSE : D_OPEN, (Settings->shutter_options[i] & 1) ? (100 - ShutterRealToPercentPosition(-9999, i)) : ShutterRealToPercentPosition(-9999, i), i+1);
WSContentSeparator(3); // Don't print separator on next WSContentSeparator(1)
}
}