From 1fe5ebc72667c4ba96b05dc588d3ebacd0b9a736 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 8 Dec 2020 19:58:43 +0100 Subject: [PATCH] Add RcSwitch case insensitive A test --- 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 24d294c48..3930dd8cd 100644 --- a/tasmota/xdrv_17_rcswitch.ino +++ b/tasmota/xdrv_17_rcswitch.ino @@ -117,7 +117,7 @@ void CmndRfProtocol(void) { } } else { if (XdrvMailbox.data_len > 0) { - if ('a' == XdrvMailbox.data[0]) { + if ('A' == toupper(XdrvMailbox.data[0])) { Settings.rf_protocol_mask = (1ULL << mySwitch.getNumProtos()) -1; } else { thisdat = strtoull(XdrvMailbox.data, nullptr, 0);