mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
Modify shutter driver for GUI sensor separators (#20506)
This commit is contained in:
parent
f2800dd770
commit
ab2439f6c8
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user