Merge pull request #10876 from barbudor/pr_rcswitch_2nd

fix wrong test on pulse
This commit is contained in:
Theo Arends 2021-02-08 09:39:57 +01:00 committed by GitHub
commit 0556cf4eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ void CmndRfSend(void)
if (!protocol) { protocol = 1; } if (!protocol) { protocol = 1; }
mySwitch.setProtocol(protocol); mySwitch.setProtocol(protocol);
// if pulse is specified in the command, enforce the provided value (otherwise lib takes default) // 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 if (!repeat) { repeat = 10; } // Default at init
mySwitch.setRepeatTransmit(repeat); mySwitch.setRepeatTransmit(repeat);
if (!bits) { bits = 24; } // Default 24 bits if (!bits) { bits = 24; } // Default 24 bits