mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
parent
2eaa0fcb67
commit
7927c989c4
@ -1515,8 +1515,9 @@ void CmndShutterPosition(void)
|
|||||||
|
|
||||||
int8_t target_pos_percent = (XdrvMailbox.payload < 0) ? (XdrvMailbox.payload == -99 ? ShutterRealToPercentPosition(Shutter[index].real_position, index) : 0) : ((XdrvMailbox.payload > 100) ? 100 : XdrvMailbox.payload);
|
int8_t target_pos_percent = (XdrvMailbox.payload < 0) ? (XdrvMailbox.payload == -99 ? ShutterRealToPercentPosition(Shutter[index].real_position, index) : 0) : ((XdrvMailbox.payload > 100) ? 100 : XdrvMailbox.payload);
|
||||||
target_pos_percent = ((Settings->shutter_options[index] & 1) && ((SRC_MQTT != TasmotaGlobal.last_source)
|
target_pos_percent = ((Settings->shutter_options[index] & 1) && ((SRC_MQTT != TasmotaGlobal.last_source)
|
||||||
|| (SRC_SERIAL != TasmotaGlobal.last_source)
|
&& (SRC_SERIAL != TasmotaGlobal.last_source)
|
||||||
|| (SRC_WEBCOMMAND != TasmotaGlobal.last_source)
|
&& (SRC_WEBGUI != TasmotaGlobal.last_source)
|
||||||
|
&& (SRC_WEBCOMMAND != TasmotaGlobal.last_source)
|
||||||
)) ? 100 - target_pos_percent : target_pos_percent;
|
)) ? 100 - target_pos_percent : target_pos_percent;
|
||||||
|
|
||||||
if (XdrvMailbox.payload != -99) {
|
if (XdrvMailbox.payload != -99) {
|
||||||
|
@ -1340,8 +1340,9 @@ void CmndShutterPosition(void)
|
|||||||
|
|
||||||
int8_t target_pos_percent = (XdrvMailbox.payload < 0) ? (XdrvMailbox.payload == -99 ? ShutterRealToPercentPosition(Shutter[index].real_position, index) : 0) : ((XdrvMailbox.payload > 100) ? 100 : XdrvMailbox.payload);
|
int8_t target_pos_percent = (XdrvMailbox.payload < 0) ? (XdrvMailbox.payload == -99 ? ShutterRealToPercentPosition(Shutter[index].real_position, index) : 0) : ((XdrvMailbox.payload > 100) ? 100 : XdrvMailbox.payload);
|
||||||
target_pos_percent = ((Settings->shutter_options[index] & 1) && ((SRC_MQTT != TasmotaGlobal.last_source)
|
target_pos_percent = ((Settings->shutter_options[index] & 1) && ((SRC_MQTT != TasmotaGlobal.last_source)
|
||||||
|| (SRC_SERIAL != TasmotaGlobal.last_source)
|
&& (SRC_SERIAL != TasmotaGlobal.last_source)
|
||||||
|| (SRC_WEBCOMMAND != TasmotaGlobal.last_source)
|
&& (SRC_WEBGUI != TasmotaGlobal.last_source)
|
||||||
|
&& (SRC_WEBCOMMAND != TasmotaGlobal.last_source)
|
||||||
)) ? 100 - target_pos_percent : target_pos_percent;
|
)) ? 100 - target_pos_percent : target_pos_percent;
|
||||||
if (XdrvMailbox.payload != -99) {
|
if (XdrvMailbox.payload != -99) {
|
||||||
//target_pos_percent = (Settings->shutter_options[index] & 1) ? 100 - target_pos_percent : target_pos_percent;
|
//target_pos_percent = (Settings->shutter_options[index] & 1) ? 100 - target_pos_percent : target_pos_percent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user