mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
Add SO73 support to PWM Dimmer
This commit is contained in:
parent
116f670631
commit
925321c4f7
@ -565,7 +565,7 @@ bool SendKey(uint32_t key, uint32_t device, uint32_t state)
|
|||||||
result = XdrvRulesProcess(0);
|
result = XdrvRulesProcess(0);
|
||||||
}
|
}
|
||||||
#ifdef USE_PWM_DIMMER
|
#ifdef USE_PWM_DIMMER
|
||||||
if (PWM_DIMMER != TasmotaGlobal.module_type || !result) {
|
if (PWM_DIMMER != TasmotaGlobal.module_type || (!result && !Settings->flag3.mqtt_buttons)) {
|
||||||
#endif // USE_PWM_DIMMER
|
#endif // USE_PWM_DIMMER
|
||||||
int32_t payload_save = XdrvMailbox.payload;
|
int32_t payload_save = XdrvMailbox.payload;
|
||||||
XdrvMailbox.payload = device_save << 24 | key << 16 | state << 8 | device;
|
XdrvMailbox.payload = device_save << 24 | key << 16 | state << 8 | device;
|
||||||
|
@ -758,7 +758,7 @@ bool Xdrv35(uint8_t function)
|
|||||||
|
|
||||||
case FUNC_BUTTON_PRESSED:
|
case FUNC_BUTTON_PRESSED:
|
||||||
// If the button is pressed or was just released, ...
|
// If the button is pressed or was just released, ...
|
||||||
if (!XdrvMailbox.payload || button_pressed[XdrvMailbox.index]) {
|
if (!Settings->flag3.mqtt_buttons && (!XdrvMailbox.payload || button_pressed[XdrvMailbox.index])) {
|
||||||
uint32_t button_index = XdrvMailbox.index;
|
uint32_t button_index = XdrvMailbox.index;
|
||||||
uint32_t now = millis();
|
uint32_t now = millis();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user