diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index ef42e85eb..18a699350 100755 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -539,7 +539,7 @@ bool SendKey(uint32_t key, uint32_t device, uint32_t state) } int32_t payload_save = XdrvMailbox.payload; XdrvMailbox.payload = key << 16 | state << 8 | device; - XsnsCall(FUNC_ANY_KEY); + XdrvCall(FUNC_ANY_KEY); XdrvMailbox.payload = payload_save; return result; }