From 155aecb330729e4f80b3cfcfba72ee92ec36f617 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Mon, 8 Feb 2021 09:05:03 +0100 Subject: [PATCH] fix wrong test on pulse --- tasmota/xdrv_17_rcswitch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_17_rcswitch.ino b/tasmota/xdrv_17_rcswitch.ino index e018a80df..4e33bcc97 100644 --- a/tasmota/xdrv_17_rcswitch.ino +++ b/tasmota/xdrv_17_rcswitch.ino @@ -196,7 +196,7 @@ void CmndRfSend(void) if (!protocol) { protocol = 1; } mySwitch.setProtocol(protocol); // if pulse is specified in the command, enforce the provided value (otherwise lib takes default) - if (!pulse) { mySwitch.setPulseLength(pulse); } + if (pulse) { mySwitch.setPulseLength(pulse); } if (!repeat) { repeat = 10; } // Default at init mySwitch.setRepeatTransmit(repeat); if (!bits) { bits = 24; } // Default 24 bits