From 52faed8c088afb60f14fe294074588498bf1106c Mon Sep 17 00:00:00 2001 From: Anton <35825286+anton-v-a@users.noreply.github.com> Date: Sat, 19 Nov 2022 01:40:24 -0500 Subject: [PATCH] Bugfix: RfSend command to support bits>32 for decimal command format --- tasmota/tasmota_xdrv_driver/xdrv_17_rcswitch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_17_rcswitch.ino b/tasmota/tasmota_xdrv_driver/xdrv_17_rcswitch.ino index 68077778e..05c28fa07 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_17_rcswitch.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_17_rcswitch.ino @@ -180,7 +180,7 @@ void CmndRfSend(void) for (char *str = strtok_r(XdrvMailbox.data, ", ", &p); str && i < 5; str = strtok_r(nullptr, ", ", &p)) { switch (i++) { 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; case 1: bits = atoi(str);