Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
7c53cc76
Commit
7c53cc76
authored
May 31, 2020
by
Gregor Hartmann
Committed by
Marcel Stör
Jun 09, 2020
Browse files
Deprecate RC module (#3137)
parent
544ee812
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/modules/rc.c
View file @
7c53cc76
...
@@ -33,6 +33,10 @@ static int ICACHE_FLASH_ATTR rc_send(lua_State* L) {
...
@@ -33,6 +33,10 @@ static int ICACHE_FLASH_ATTR rc_send(lua_State* L) {
NODE_ERR
(
"Protocol:%d
\n
"
,
Protocol
);
NODE_ERR
(
"Protocol:%d
\n
"
,
Protocol
);
NODE_ERR
(
"repeat:%d
\n
"
,
repeat
);
NODE_ERR
(
"repeat:%d
\n
"
,
repeat
);
NODE_ERR
(
"send:"
);
NODE_ERR
(
"send:"
);
platform_print_deprecation_note
(
"rc"
,
"in the next release. Use rfswitch module instead."
);
int
c
,
k
,
nRepeat
;
int
c
,
k
,
nRepeat
;
bits
=
bits
-
1
;
bits
=
bits
-
1
;
for
(
c
=
bits
;
c
>=
0
;
c
--
)
for
(
c
=
bits
;
c
>=
0
;
c
--
)
...
...
docs/modules/rc.md
View file @
7c53cc76
...
@@ -8,6 +8,10 @@ Superseded by **[rfswitch](./rfswitch.md)** module which have same functionality
...
@@ -8,6 +8,10 @@ Superseded by **[rfswitch](./rfswitch.md)** module which have same functionality
For more detailed description see
[
rfswitch module documentation
](
./rfswitch.md
)
.
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()
## rc.send()
Sends series of impulses
Sends series of impulses
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment