From 7c53cc7611091d579b72024e9155c41ac6d3b4a2 Mon Sep 17 00:00:00 2001 From: Gregor Hartmann Date: Sun, 31 May 2020 08:58:44 +0200 Subject: [PATCH] Deprecate RC module (#3137) --- app/modules/rc.c | 4 ++++ docs/modules/rc.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/modules/rc.c b/app/modules/rc.c index 1c3ff3b2..3037fcc0 100644 --- a/app/modules/rc.c +++ b/app/modules/rc.c @@ -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--) diff --git a/docs/modules/rc.md b/docs/modules/rc.md index fe69b854..17658648 100644 --- a/docs/modules/rc.md +++ b/docs/modules/rc.md @@ -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