mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Bugfix: RfSend command to support bits>32 for decimal command format
This commit is contained in:
parent
eac0bbc1d9
commit
52faed8c08
@ -180,7 +180,7 @@ void CmndRfSend(void)
|
|||||||
for (char *str = strtok_r(XdrvMailbox.data, ", ", &p); str && i < 5; str = strtok_r(nullptr, ", ", &p)) {
|
for (char *str = strtok_r(XdrvMailbox.data, ", ", &p); str && i < 5; str = strtok_r(nullptr, ", ", &p)) {
|
||||||
switch (i++) {
|
switch (i++) {
|
||||||
case 0:
|
case 0:
|
||||||
data = strtoul(str, nullptr, 0); // Allow decimal (5246996) and hexadecimal (0x501014) input
|
data = strtoull(str, nullptr, 0); // Allow decimal (5246996) and hexadecimal (0x501014) input
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
bits = atoi(str);
|
bits = atoi(str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user