Skip to content

Commit

Permalink
Deprecate RC module (#3137)
Browse files Browse the repository at this point in the history
  • Loading branch information
HHHartmann authored and marcelstoer committed Jun 9, 2020
1 parent 544ee81 commit 7c53cc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/modules/rc.c
Expand Up @@ -33,6 +33,10 @@ static int ICACHE_FLASH_ATTR rc_send(lua_State* L) {
NODE_ERR("Protocol:%d\n",Protocol);
NODE_ERR("repeat:%d\n",repeat);
NODE_ERR("send:");

platform_print_deprecation_note("rc",
"in the next release. Use rfswitch module instead.");

int c,k,nRepeat;
bits = bits-1;
for (c = bits; c >= 0; c--)
Expand Down
4 changes: 4 additions & 0 deletions docs/modules/rc.md
Expand Up @@ -8,6 +8,10 @@ Superseded by **[rfswitch](./rfswitch.md)** module which have same functionality

For more detailed description see [rfswitch module documentation](./rfswitch.md).

!!! caution

This module is deprecated and will be removed in favor of the **[rfswitch](./rfswitch.md)** module.

## rc.send()
Sends series of impulses

Expand Down

0 comments on commit 7c53cc7

Please sign in to comment.