mirror of https://github.com/arendst/Tasmota.git
Add RcSwitch case insensitive A test
This commit is contained in:
parent
0fb8ee0de6
commit
1fe5ebc726
|
@ -117,7 +117,7 @@ void CmndRfProtocol(void) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (XdrvMailbox.data_len > 0) {
|
if (XdrvMailbox.data_len > 0) {
|
||||||
if ('a' == XdrvMailbox.data[0]) {
|
if ('A' == toupper(XdrvMailbox.data[0])) {
|
||||||
Settings.rf_protocol_mask = (1ULL << mySwitch.getNumProtos()) -1;
|
Settings.rf_protocol_mask = (1ULL << mySwitch.getNumProtos()) -1;
|
||||||
} else {
|
} else {
|
||||||
thisdat = strtoull(XdrvMailbox.data, nullptr, 0);
|
thisdat = strtoull(XdrvMailbox.data, nullptr, 0);
|
||||||
|
|
Loading…
Reference in New Issue