Skip to content

Commit 7c53cc7

Browse files
HHHartmannmarcelstoer
authored andcommitted
Deprecate RC module (#3137)
1 parent 544ee81 commit 7c53cc7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/modules/rc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ static int ICACHE_FLASH_ATTR rc_send(lua_State* L) {
3333
NODE_ERR("Protocol:%d\n",Protocol);
3434
NODE_ERR("repeat:%d\n",repeat);
3535
NODE_ERR("send:");
36+
37+
platform_print_deprecation_note("rc",
38+
"in the next release. Use rfswitch module instead.");
39+
3640
int c,k,nRepeat;
3741
bits = bits-1;
3842
for (c = bits; c >= 0; c--)

docs/modules/rc.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Superseded by **[rfswitch](./rfswitch.md)** module which have same functionality
88

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

11+
!!! caution
12+
13+
This module is deprecated and will be removed in favor of the **[rfswitch](./rfswitch.md)** module.
14+
1115
## rc.send()
1216
Sends series of impulses
1317

0 commit comments

Comments
 (0)